tty_get_char_size(9)
π 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 termioscflagvalue π«Ά this is the thing you hand over, and she's gonna go look at itsCSIZEsetting 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:
tty_chars_in_buffer(9)tty_write_room(9)tty_driver_flush_buffer(9)tty_unthrottle(9)tty_throttle_safe(9)tty_unthrottle_safe(9)tty_wait_until_sent(9)tty_termios_copy_hw(9)tty_termios_hw_change(9)tty_get_frame_size(9)tty_set_termios(9)set_termios(9)set_sgttyb(9)tty_change_softcar(9)tty_mode_ioctl(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms