Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
RESIZEWIN(1)		FreeBSD	General	Commands Manual		  RESIZEWIN(1)

NAME
     resizewin -- update terminal size

SYNOPSIS
     resizewin [-z]

DESCRIPTION
     The resizewin utility queries the terminal	emulator for the current win-
     dow size and updates the size known to the	kernel using the TIOCSWINSZ
     ioctl.

     The following options are available:

     -z	 Do nothing unless the current kernel terminal size is zero.  This is
	 useful	when run from a	user's profile (shell startup) scripts:	query-
	 ing the window	size is	required for serial lines, but not when	log-
	 ging 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	vari-
     ables.

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

SEE ALSO
     stty(1), tty(4)

HISTORY
     The resizewin command first appeared in FreeBSD 11.0.

FreeBSD	Ports 11.2		  May 9, 2017		    FreeBSD Ports 11.2

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=resizewin&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help