tty_get_char_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– tty_get_char_size(9) πŸ’–

okay so bestie, welcome to the tty_get_char_size(9) page β€” it's a Kernel API Manual moment, and honestly it's a little icon. tiny function, big "i know my termios" energy. let's get into it ✨


🌸 NAME 🌸

tty_get_char_size β€” get size of a character πŸŽ€

like, the size. of a character. that's the whole vibe. she's not complicated and that's why we love her πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned char tty_get_char_size (unsigned int cflag );

no cap, that's the whole signature. one argument, and she returns an unsigned char. short and slay πŸ”₯


πŸ‘‘ ARGUMENTS πŸ‘‘

  • cflag β€” the termios cflag value 🫢 this is the thing you hand over, and she's gonna go look at its CSIZE setting to figure out what's tea.

⭐ RETURN ⭐

she returns the size (in bits) of a character, and that size depends on what cflag's CSIZE setting is set to πŸ’– that's it, that's the return. bits. not bytes, bestie β€” bits, iykyk 🌈


🧚 SEE ALSO 🧚

if you're obsessed with this one (and why wouldn't you be πŸ‘‘), the kernel file that has her back is ./drivers/tty/tty_ioctl.c, and here's the whole friend group:

go read them, they all ate πŸ’…βœ¨


aaaand that's the page!! πŸŽ€ huge thanks to the ./drivers/tty girlies for hosting this one, and shoutout to the October 2026 era of the Kernel API Manual for making it official πŸ¦‹πŸ“ love u, bye!! πŸ’œ

πŸ“¦ where this page comes from