summaryrefslogtreecommitdiff
path: root/runtime/js/40_tty.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/40_tty.js')
-rw-r--r--runtime/js/40_tty.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/js/40_tty.js b/runtime/js/40_tty.js
index 1abed5f25..9cf351cc0 100644
--- a/runtime/js/40_tty.js
+++ b/runtime/js/40_tty.js
@@ -3,13 +3,14 @@
((window) => {
const core = window.Deno.core;
+ const ops = core.ops;
function consoleSize(rid) {
- return core.opSync("op_console_size", rid);
+ return ops.op_console_size(rid);
}
function isatty(rid) {
- return core.opSync("op_isatty", rid);
+ return ops.op_isatty(rid);
}
const DEFAULT_SET_RAW_OPTIONS = {
@@ -18,7 +19,7 @@
function setRaw(rid, mode, options = {}) {
const rOptions = { ...DEFAULT_SET_RAW_OPTIONS, ...options };
- core.opSync("op_set_raw", { rid, mode, options: rOptions });
+ ops.op_set_raw({ rid, mode, options: rOptions });
}
window.__bootstrap.tty = {