WINSIZE(1-SysV) RISC/os Reference Manual WINSIZE(1-SysV)
NAME
winsize - set/print window size
SYNOPSIS
winsize [ -c ] [ -r ] [ value... ]
DESCRIPTION
With no arguments, winsize prints the current number of rows
and columns associated with the terminal. With two values,
the number of rows and columns is set.
Giving the -c option without a value prints the number of
columns. With a value, the number of columns is set.
Giving the -r option without a value prints the number of
rows. With a value, the number of rows is set.
A value may either be a number or the word ``same'', which
indicates that the item should not change. Note that a
value of 0 for either rows or columns indicates that pro-
grams will use the value found in the terminfo(4) entry, not
that that dimension has a value of 0.
Giving both -c and -r is the same as giving neither.
Changing the number of rows and columns does not necessarily
change the size of the associated window, and should not be
done frivolously.
SEE ALSO
ioctl(2), terminfo(4) in the Programmer's Reference Manual.
termio(7) in the System Administrator's Reference Manual.
Printed 1/15/91 Page 1