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

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?