Skip to content

TerminalMode

[Source]

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.

primitive val TerminalMode

Constructors

create

[Source]

new val create()
: TerminalMode val^

Returns


Public Functions

set_raw

[Source]

Put stdin into pseudo-raw mode. Returns true if the terminal was changed, false if stdin is not a terminal or the call failed.

fun box set_raw(
  auth: TerminalAuth val)
: Bool val

Parameters

Returns


restore

[Source]

Restore stdin to its original terminal mode.

fun box restore(
  auth: TerminalAuth val)
: None val

Parameters

Returns


eq

[Source]

fun box eq(
  that: TerminalMode val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: TerminalMode val)
: Bool val

Parameters

Returns