A.3. getwindowsize

($lines, $columns) = getwindowsize(void);

$columns = getwindowsize(void);

This functions returns the current size of the window (in characters), in terms of lines and columns. It can return both dimensions, or just the number of columns.