summaryrefslogtreecommitdiff
path: root/runtime/js/40_files.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/40_files.js')
-rw-r--r--runtime/js/40_files.js5
1 files changed, 5 insertions, 0 deletions
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 {