TtyTerminalBinding import { TtyTerminalBinding } from "destack:tty/binding"; Terminal binding family. export interface TtyTerminalBinding { openStandardInputTty(): Result; openStandardOutputTty(): Result; openStandardErrorTty(): Result; closeTty(tty: TtyHandle): Result; isTerminalFile(handle: FileHandle): Result; readTty(tty: TtyHandle, buffer: &'a [uint8]): Result; writeTty(tty: TtyHandle, buffer: &'a readonly [uint8]): Result; readTtyMode(tty: TtyHandle): Result; setTtyMode(tty: TtyHandle, mode: &'a readonly TtyMode): Result; setRawTtyMode(tty: TtyHandle, enabled: boolean): Result; readTtySize(tty: TtyHandle): Result; setTtySize(tty: TtyHandle, size: &'a readonly TtySize): Result; } language/library/src/tty/binding/terminal.ds:33:141 Members openStandardInputTty(): Result Open one standard input terminal handle. openStandardOutputTty(): Result Open one standard output terminal handle. openStandardErrorTty(): Result Open one standard error terminal handle. closeTty(tty: TtyHandle): Result Close one terminal handle. isTerminalFile(handle: FileHandle): Result Return whether one file handle is attached to a terminal. readTty(tty: TtyHandle, buffer: &'a [uint8]): Result Read bytes from a terminal. writeTty(tty: TtyHandle, buffer: &'a readonly [uint8]): Result Write bytes to a terminal. readTtyMode(tty: TtyHandle): Result Read terminal mode flags. setTtyMode(tty: TtyHandle, mode: &'a readonly TtyMode): Result Apply terminal mode flags. setRawTtyMode(tty: TtyHandle, enabled: boolean): Result Enable or disable raw terminal mode. readTtySize(tty: TtyHandle): Result Read terminal size. setTtySize(tty: TtyHandle, size: &'a readonly TtySize): Result Apply terminal size.