TerminalMode¶
Controls the terminal mode for stdin.
In raw mode, input characters are delivered one at a time without echo or line editing. ISIG remains on, so Ctrl-C still generates SIGINT.
Constructors¶
create¶
Returns¶
- TerminalMode val^
Public Functions¶
set_raw¶
Put stdin into pseudo-raw mode. Returns true if the terminal was changed, false if stdin is not a terminal or the call failed.
Parameters¶
- auth: TerminalAuth val
Returns¶
- Bool val
restore¶
Restore stdin to its original terminal mode.
Parameters¶
- auth: TerminalAuth val
Returns¶
- None val
eq¶
Parameters¶
- that: TerminalMode val
Returns¶
- Bool val
ne¶
Parameters¶
- that: TerminalMode val
Returns¶
- Bool val