Name
GetConsoleSize -- get console dimensions (V10.0)
Synopsis
cols, rows = GetConsoleSize()
Platforms
Linux, macOS, Windows

Function
This function returns the size of the current window. The size is returned as the number of columns and rows available in the current window. A typical terminal size is 80x24, i.e. 24 rows with 80 characters per row.

You must enable advanced console mode using EnableAdvancedConsole() before you can use this function. See EnableAdvancedConsole for details.

Inputs
none

Results
cols
number of columns in window
rows
number of rows in window

Show TOC