From c1fac11dfaf9d656b7361708d9faab1916eac846 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Mon, 19 Feb 2024 01:27:44 +1100 Subject: feat(fs): `Deno.FsFile.{isTerminal,setRaw}()` (#22234) Closes #22229. --------- Signed-off-by: Asher Gomez --- ext/io/12_io.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/io') diff --git a/ext/io/12_io.js b/ext/io/12_io.js index 70b639d45..fbaf28de7 100644 --- a/ext/io/12_io.js +++ b/ext/io/12_io.js @@ -5,7 +5,7 @@ // Thank you! We love Go! <3 import { core, internals, primordials } from "ext:core/mod.js"; -import { op_is_terminal, op_stdin_set_raw } from "ext:core/ops"; +import { op_is_terminal, op_set_raw } from "ext:core/ops"; const { Uint8Array, ArrayPrototypePush, @@ -218,7 +218,7 @@ class Stdin { setRaw(mode, options = {}) { const cbreak = !!(options.cbreak ?? false); - op_stdin_set_raw(mode, cbreak); + op_set_raw(this.#rid, mode, cbreak); } isTerminal() { -- cgit v1.2.3