tty_do_resize(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… tty_do_resize(9) β€” the tty_do_resize glow-up page πŸ’…

okay so bestie, welcome to the Kernel API Manual entry for tty_do_resize(9) β€” yes that's the actual manual name, and yes you're gonna understand it, because this one is honestly short and sweet πŸ“


✨ NAME ✨

tty_do_resize β€” the resize event handler, aka the thing that makes your terminal actually notice it got bigger πŸ¦‹


✨ SYNOPSIS ✨

int tty_do_resize (struct tty_struct *tty , struct winsize *ws );

that's it, that's the whole signature, no cap πŸ”₯


✨ ARGUMENTS ✨

  • tty β€” the tty that's getting resized, the main character in this whole situation πŸ‘‘
  • ws β€” the new dimensions, like the new fit check for your terminal πŸ“

✨ DESCRIPTION ✨

so what does it actually do? it updates the termios variables and sends the necessary signals so that a terminal resize gets performed correctly πŸ’–

that's the entire vibe: update the variables, send the signals, resize goes through properly. literally it ✨ periodt.


✨ SEE ALSO ✨

the whole tty friend group, linked from the kernel file ./drivers/tty/tty_io.c β€” and ngl this is a long list, so buckle up bestie, every single one is here 🫢


πŸ’€ real talk: this page is sourced from ./drivers/tty, dated October 2026, and it's the tty_do_resize(9) page β€” go resize something responsibly, bestie πŸ’œπŸŽ€
πŸ“¦ where this page comes from