Skip to content

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

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

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

Conversation

@0pcom

@0pcom 0pcom commented Sep 1, 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.

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.
@0pcom 0pcom closed this Sep 4, 2026
@0pcom
0pcom deleted the js-support branch September 4, 2026 15:04
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