Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/vim/mod.ts>term_getsize

๐Ÿ“š Standard module for denops.vim
Go to Latest
function term_getsize
import { term_getsize } from "https://deno.land/x/denops_std@v5.0.2/function/vim/mod.ts";

Get the size of terminal {buf}. Returns a list with two numbers: [rows, cols]. This is the size of the terminal, not the window containing the terminal.

{buf} must be the buffer number of a terminal window. Use an empty string for the current buffer. If the buffer does not exist or is not a terminal window, an empty list is returned.

Can also be used as a method:

GetBufnr()->term_getsize()

Parameters

denops: Denops
buf: unknown

Returns

Promise<unknown[]>