Skip to content

add GOOS=js (wasm) build support - #14

Open
0pcom wants to merge 1 commit into
atomicgo:mainfrom
0magnet:js-support
Open

add GOOS=js (wasm) build support#14
0pcom wants to merge 1 commit into
atomicgo:mainfrom
0magnet:js-support

Conversation

@0pcom

@0pcom 0pcom commented Sep 4, 2026

Copy link
Copy Markdown

Provides the tty platform layer for the js build tag so the package compiles for browser (wasm) targets: init/restore/close are no-ops (there is no terminal to configure) and openInputTTY reports that no controlling terminal exists — callers supply input through explicit readers instead. Motivation: TUI libraries depending on this package currently fail to compile for wasm; in use in skycoin/skywire's wasm build. Native targets unchanged.

Reopened from 0magnet/keyboard after consolidating a duplicate fork; supersedes #13. Same commit, identical diff.

Provide the tty platform layer for the js build tag so the package
compiles for browser (wasm) targets: init/restore/close are no-ops
(there is no terminal to configure) and openInputTTY reports that no
controlling terminal exists — callers supply input through explicit
readers. Lets TUI libraries that depend on this package build
unchanged for wasm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant