Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/lib.deno.unstable.d.ts>Deno.setRaw

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.setRaw
import { Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.unstable.d.ts";
const { setRaw } = 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.

  Deno.setRaw(myTTY.rid, true);

Parameters

rid: number
mode: boolean