RESIZEWIN(1)
πΈ NAME πΈ
resizewin β update terminal size, bestie π
Welcome to the resizewin(1) page from the General Commands Manual β this is where terminal sizes get their little glow-up β¨
β¨ SYNOPSIS β¨
resizewin [-z]
π DESCRIPTION π
Okay so resizewin is the utility that queries the terminal emulator for the current window size and updates the size known to the kernel using the TIOCSWINSZ ioctl. Slay π
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: querying the window size is required for serial lines, but not when logging in over the network, as protocols likeTELNETorSSHalready handle the terminal size by themselves. No cap, it's literally just sitting there unless the kernel size is zero π«Ά
After a terminal window has been resized, running resizewin updates the kernel's window size to match the new size. Iconic behavior, honestly π
resizewin is functionally similar to resize(1), which is part of the xterm(1) (ports/x11/xterm) distribution. However, resizewin only works with VT100/ANSI-compatible terminals and does not emit commands to set environment variables. That's the vibe check: compatible terminals only, and no env-var side quests π
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. So yeah, your fave terminal is probably invited to the party π
π SEE ALSO π
Go check out stty(1) and tty(4) β supporting cast, but make it useful π
π°οΈ HISTORY π°οΈ
The resizewin command first appeared in FreeBSD 11.0. A little icon, a little legend π
Debian β’ May 9, 2017 β’ resizewin(1) β that's the footer, bestie, and yes we're ending on a cute note πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- π the page's license: BSD-2-Clause
- Copyright 2015 EMC / Isilon Storage Division
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms