Skip to main content
Deno.stdin.setRaw - Deno documentation
method Deno.stdin.setRaw
stdin.setRaw(
mode: boolean,
options?: SetRawOptions,
): void

Set TTY to be under raw mode or not. In raw mode, characters are read and returned as is, without being processed. All special processing of characters by the terminal is disabled, including echoing input characters. Reading from a TTY device in raw mode is faster than reading from a TTY device in canonical mode.

Deno.stdin.setRaw(true, { cbreak: true });

Parameters

mode: boolean
optional
options: SetRawOptions

Return Type

void
Back to top