Appendix B. $window Reference

$windown is a variable that is always present and points to the current window. It is an object of class Window, and is opaque, that is, all interaction with it should be done via its functions, and not via its members.

The sections below describe the functions available for the $window variable.

B.1. getsize

($lines, $columns) = $window->getsize(void);

$columns = $window->getsize(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.