Module terminal

Module terminal 

Source
Expand description

High-level terminal abstraction over a PTY.

Terminal owns a PtyMaster and drives async read/write loops via tokio. Output is fanned out through a broadcast channel so multiple subscribers (WebSocket clients) can receive the same stream.

Structsยง

Terminal
Async terminal backed by a real PTY.

Constantsยง

INPUT_CHANNEL_SIZE ๐Ÿ”’
OUTPUT_CHANNEL_SIZE ๐Ÿ”’
READ_BUF_SIZE ๐Ÿ”’

Functionsยง

read_loop ๐Ÿ”’
write_loop ๐Ÿ”’