Skip to content

__terminal_size__

builtin · libnexusinterp/corefcn/pager-proprietary.cc

: sz = __terminal_size__ ()
: old_sz = __terminal_size__ ([rows, columns])

Query or set the size of the terminal as a two element vector [rows, columns].

Fractional values are rounded to the nearest integer; both must be positive.