Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/lib.deno.d.ts>Deno.FsFile#setRaw

A JavaScript extension package for building strong and modern applications.
Latest
method Deno.FsFile.prototype.setRaw
import { Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { FsFile } = Deno;

UNSTABLE: New API, yet to be vetted.

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.

using file = await Deno.open("/dev/tty6");
file.setRaw(true, { cbreak: true });

Parameters

mode: boolean
optional
options: SetRawOptions