Expand description
Cleanroom Rust port of upstream Go source file: tty.go
Upstream Target Tag / Version: v2.0.8
TTY initialization, input stream setup, raw mode toggles, and window dimension queries for Bubble Tea v2.0.8.
Functionsยง
- disable_
raw_ mode - Restores the terminal state saved by
enable_raw_mode, mirroring the upstreamterm.Restorepath. - enable_
raw_ mode - Initializes terminal raw mode, mirroring the upstream
initInput->term.MakeRawpath (tty_unix.go). Unlike a fully-zeroedcfmakeraw, onlyOPOSTis cleared from the output flags, soTABDLY(and thus the hard-tab cursor optimization) behaves exactly as it does upstream. - get_
window_ size - Queries current window size columns and rows.
- init_
terminal - Initializes terminal raw mode.
- restore_
terminal - Restores terminal raw mode.