An interface providing an optional terminal-output for stdout as a
link-time authority.
Types
use resource terminal-outputsince 0.2.0
from wasi:cli/terminal-output@0.2.3
The output side of a terminal.
Functions
get-terminal-stdout: func() -> option<terminal-output>since 0.2.0
If stdout is connected to a terminal, return a terminal-output handle
allowing further interaction with it.
WIT
/// An interface providing an optional `terminal-output` for stdout as a
/// link-time authority.
@since(version = 0.2.0)
interface terminal-stdout {
@since(version = 0.2.0)
use terminal-output.{terminal-output};
/// If stdout is connected to a terminal, return a `terminal-output` handle
/// allowing further interaction with it.
@since(version = 0.2.0)
get-terminal-stdout: func() -> option<terminal-output>;
}