Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions signals_js.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//go:build js
// +build js

package tea

// listenForResize is not available in js runtime.
func (p *Program) listenForResize(done chan struct{}) {
close(done)
}
21 changes: 21 additions & 0 deletions tty_js.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//go:build js
// +build js

package tea

import (
"errors"
"os"
)

func (p *Program) initInput() error {
return nil
}

func (p *Program) restoreInput() error {
return nil
}

func openInputTTY() (*os.File, error) {
return nil, errors.New("unavailable in js")
}