RESIZEWIN(1)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.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 like TELNET or SSH already 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