From ab0c33ebf83f25b526f732e3e07de5e75a6e69bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 26 Oct 2022 00:23:21 +0200 Subject: feat: Stabilize Deno.consoleSize() API (#15933) This commit stabilizes "Deno.consoleSize()" API. There is one change compared to previous unstable API, in that the API doesn't accept any arguments. Console size is established by querying syscalls for stdio streams at fd 0, 1 and 2. --- runtime/js/40_tty.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/js/40_tty.js') diff --git a/runtime/js/40_tty.js b/runtime/js/40_tty.js index be5154fa2..8ce3e83ef 100644 --- a/runtime/js/40_tty.js +++ b/runtime/js/40_tty.js @@ -10,8 +10,8 @@ const ops = core.ops; const size = new Uint32Array(2); - function consoleSize(rid) { - ops.op_console_size(rid, size); + function consoleSize() { + ops.op_console_size(size); return { columns: size[0], rows: size[1] }; } -- cgit v1.2.3