use deno_runtime::ops::tty::ConsoleSize; /// Gets the console size. pub fn console_size() -> Option { let stderr = &deno_runtime::ops::io::STDERR_HANDLE; deno_runtime::ops::tty::console_size(stderr).ok() }