From 70bc0eb72b01249b4c1ccc92b51bf5c442b3edc9 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 28 Sep 2022 15:03:56 +0200 Subject: feat(unstable): Deno.setRaw -> Deno.stdin.setRaw (#15797) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- runtime/js/40_files.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/js/40_files.js') diff --git a/runtime/js/40_files.js b/runtime/js/40_files.js index a2afdb09d..c864d3970 100644 --- a/runtime/js/40_files.js +++ b/runtime/js/40_files.js @@ -181,6 +181,11 @@ } return this.#readable; } + + setRaw(mode, options = {}) { + const cbreak = !!(options.cbreak ?? false); + ops.op_stdin_set_raw(mode, cbreak); + } } class Stdout { -- cgit v1.2.3