Skip to main content

enable_raw_mode

Function enable_raw_mode 

Source
pub fn enable_raw_mode() -> Result<()>
Expand description

Initializes terminal raw mode, mirroring the upstream initInput -> term.MakeRaw path (tty_unix.go). Unlike a fully-zeroed cfmakeraw, only OPOST is cleared from the output flags, so TABDLY (and thus the hard-tab cursor optimization) behaves exactly as it does upstream.