Skip to content

ConsTerminal

Defined in: packages/core/src/kernel/tty/cons.ts:79

Host-side terminal handle returned by createConsFS.

The host plumbs bytes in/out of the line discipline through these three endpoints while in-process code interacts with the terminal via the fileserver half (ConsResult.server). The split exists so the runtime adapter (Node.js raw-mode stdin, browser xterm.js, etc.) can own host-side I/O without exposing it into the VFS.

readonly stderr: Writable

Defined in: packages/core/src/kernel/tty/cons.ts:85

Host-side stderr sink; currently aliases the ldisc’s stderr handle.


readonly stdin: TtyReadable

Defined in: packages/core/src/kernel/tty/cons.ts:81

Host-side stdin feeding the line discipline’s cooked/raw input stream.


readonly stdout: Writable

Defined in: packages/core/src/kernel/tty/cons.ts:83

Host-side stdout sink receiving bytes written to /dev/cons/data.

dispose(): void

Defined in: packages/core/src/kernel/tty/cons.ts:90

Tear down the underlying line discipline. Subsequent Fileserver reads / writes throw EIO ('terminal disposed'). Idempotent.

void