is_utf8_continuation(9)
πΈ is_utf8_continuation(9) πΈ
okay so bestie, welcome to the Kernel API Manual β this is the is_utf8_continuation(9) page and it's honestly a tiny little icon β¨
π NAME π
is_utf8_continuation β the utf8 multibyte check, and yes she's exactly as niche and essential as she sounds π
β¨ SYNOPSIS β¨
int is_utf8_continuation (u8 c );
π¦ ARGUMENTS π¦
cβ the byte to check, bestie. that's it. that's the whole input. one singular byte, living its life π«Ά
π RETURN π
returns true if the utf8 character c is a multibyte continuation character. fr fr, that's the whole deal π
and the reason we even care? we use this to correctly compute the on-screen size of the character when printing. like, so your terminal doesn't have a whole meltdown and misalign everything π the math needs to know if this byte is a continuation or not, no cap.
π SEE ALSO π
the whole kernel file lives in ./drivers/tty/n_tty.c, and here's the full squad β literally the entire group chat:
n_tty_kick_worker(9)n_tty_write_wakeup(9)put_tty_queue(9)reset_buffer_flags(9)n_tty_flush_buffer(9)is_continuation(9)do_output_char(9)process_output(9)process_output_block(9)__process_echoes(9)add_echo_byte(9)echo_move_back_col(9)echo_set_canon_col(9)echo_erase_tab(9)echo_char_raw(9)echo_char(9)finish_erasing(9)eraser(9)isig(9)n_tty_receive_break(9)n_tty_receive_overrun(9)n_tty_receive_parity_error(9)n_tty_receive_char_flow_ctrl(9)n_tty_receive_char(9)n_tty_receive_buf_common(9)n_tty_set_termios(9)n_tty_close(9)n_tty_open(9)copy_from_read_buf(9)canon_copy_from_read_buf(9)job_control(9)n_tty_read(9)n_tty_write(9)n_tty_poll(9)n_tty_inherit_ops(9)
π reminder that this lives under ./drivers/tty β that's the address, iykyk
k bye bestie, stay slaying those multibyte characters π§π β this page dropped October 2026 from the ./drivers/tty source, and it's giving legendary. periodt. β
π¦ 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