ConsTerminal
Defined in: packages/core/src/kernel/tty/cons.ts:79
Host-side terminal handle returned by createConsFS.
Remarks
Section titled “Remarks”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.
Properties
Section titled “Properties”stderr
Section titled “stderr”
readonlystderr:Writable
Defined in: packages/core/src/kernel/tty/cons.ts:85
Host-side stderr sink; currently aliases the ldisc’s stderr handle.
readonlystdin:TtyReadable
Defined in: packages/core/src/kernel/tty/cons.ts:81
Host-side stdin feeding the line discipline’s cooked/raw input stream.
stdout
Section titled “stdout”
readonlystdout:Writable
Defined in: packages/core/src/kernel/tty/cons.ts:83
Host-side stdout sink receiving bytes written to /dev/cons/data.
Methods
Section titled “Methods”dispose()
Section titled “dispose()”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.
Returns
Section titled “Returns”void