bubbletea/tty_other.go
Calvin Prewitt 73b79b3737
Provide the platform input/signal stubs on wasip1/wasip2 (#1767)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Drew Smirnoff <drew@charm.land>
2026-11-12 17:24:26 +04:00

12 lines
359 B
Go

//go:build wasip1 || wasip2
package tea
// initInput on WASI: there is no raw mode and no /dev/tty; the program
// runs with non-TTY (pipe) input, which Bubble Tea supports natively.
func (p *Program) initInput() (err error) { return nil }
// suspendSupported: no SIGTSTP or process groups on WASI.
const suspendSupported = false
func suspendProcess() {}