Terminalwire.Server.Terminal (Terminalwire v0.1.0)

Copy Markdown View Source

The client's terminal, as seen by the server. A typed view over the raw handshake terminal map so server code reads t.cols / t.tty? instead of digging through string-keyed maps. Mirrors the Ruby server's Terminal accessor.

Summary

Functions

Build from the raw hello.terminal map (string keys); nil-safe.

Does the client have a real terminal (any standard stream is a tty)?

Types

t()

@type t() :: %Terminalwire.Server.Terminal{
  color: term(),
  cols: term(),
  encoding: term(),
  rows: term(),
  stderr_tty: term(),
  stdin_tty: term(),
  stdout_tty: term(),
  term: term()
}

Functions

from_map(map)

Build from the raw hello.terminal map (string keys); nil-safe.

tty?(terminal)

Does the client have a real terminal (any standard stream is a tty)?