tail head cat sleep
QR code linking to this page

Manual Pages  — RESIZEWIN


resizewin – update terminal size



resizewin [-z]


The resizewin utility queries the terminal emulator for the current window size and updates the size known to the kernel using the TIOCSWINSZ ioctl.

The following options are available:
  Do nothing unless the current kernel terminal size is zero. This is useful when run from a user's profile (shell startup) scripts: querying the window size is required for serial lines, but not when logging in over the network, as protocols like TELNET or SSH already handle the terminal size by themselves.

After a terminal window has been resized, running resizewin updates the kernel's window size to match the new size.

resizewin is functionally similar to resize(1), which is part of the xterm(1) distribution. However, resizewin only works with VT100/ANSI-compatible terminals and does not emit commands to set environment variables.

The terminal is assumed to be VT100/ANSI compatible. The VT100/ANSI escape sequences are supported by virtually all modern terminals, including xterm, konsole, gnome-terminal, iTerm, Terminal.app, and PuTTY.


stty(1), tty(4)


The resizewin command first appeared in FreeBSD 11.0 .

RESIZEWIN (1) May 9, 2017

tail head cat sleep
QR code linking to this page

Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology.
— The Unix Haters' handbook