componentized/directory

wasi:cli

interface dependency

WASI CLI interfaces for command-line programs

interface terminal-stderr wasi:cli/terminal-stderr@0.2.12 since 0.2.0

An interface providing an optional terminal-output for stderr as a link-time authority.

Types

use resource terminal-outputsince 0.2.0

from wasi:cli/terminal-output@0.2.12

The output side of a terminal.

Functions

functionget-terminal-stderr: func() -> option<terminal-output>since 0.2.0

If stderr is connected to a terminal, return a terminal-output handle allowing further interaction with it.

WIT

/// An interface providing an optional `terminal-output` for stderr as a
/// link-time authority.
@since(version = 0.2.0)
interface terminal-stderr {
  @since(version = 0.2.0)
  use terminal-output.{terminal-output};

  /// If stderr is connected to a terminal, return a `terminal-output` handle
  /// allowing further interaction with it.
  @since(version = 0.2.0)
  get-terminal-stderr: func() -> option<terminal-output>;
}