Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

terminal_size

Query the size of the terminal window.

Syntax

  • [r, c] = terminal_size()

Output argument

  • [r, c] - a vector: rows and columns

Description

terminal_size() returns a vector with size of the terminal window in characters (rows and columns).

Example

terminal_size()

See also

disp.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET