WebAssembly / wasi-cli

Command-Line Interface (CLI) World for WASI
Other
68 stars 11 forks source link

Add `isatty` support. #9

Closed sunfishcode closed 1 year ago

sunfishcode commented 1 year ago

This adds new terminal (pseudo-)resources, and new link-time authority functions which optionally return them. For now, these resources don't have any additional functions, and just support testing whether a terminal is present, supporting isatty functionality.

In the future they could be extended to support querying terminal attributes and configuring terminal modes.