TERMSIZE(1) | USER COMMANDS | TERMSIZE(1) |
---|

termsize - determine terminal (window) size

The terminal (window) size is determined as follows.
If the environment variable
**TERM**
has the form
**TERM=***s* **LINES=***l* **COLUMNS=***c*
then
*s*
is the terminal type,
*l*
is the number of lines and
*c*
is the number of columns, otherwise the lines and columns are determined by
*winsize*(3).*termcap*(5)**TERM**
environment variable is defined and are otherwise
**LINES=24**
and
**COLUMNS=80**.

winsize(3), termcap(5)

November 07, 2006 |