is_continuation(9)
π is_continuation(9) β the multibyte check bestie
okay so this whole page lives in the Kernel API Manual, and the star of the show is is_continuation(9) β literally a tiny little multibyte check and honestly? she's iconic for how much she does with so little. β¨
πΈ NAME πΈ
is_continuation β multibyte check π
Like, that's it. That's the whole pitch. A check. For multibyte stuff. Slay.
π¦ SYNOPSIS π¦
int is_continuation (u8 c , const struct tty_struct *tty );
That's the whole signature, no cap β one int coming back at you, a u8 c going in, and a const struct tty_struct *tty riding along. π
β¨ ARGUMENTS β¨
cβ the byte you're checking π just a lil byte, that's all she isttyβ the terminal device, aka the whole vibe context for this check π₯οΈ
π«Ά RETURN π«Ά
It returns true when both of these things are true, fr fr:
- the utf8 character
cis a multibyte continuation character, and - the terminal is in unicode mode π
Like, both conditions or it's not giving. Periodt. π
π SEE ALSO π
Okay bestie, buckle up, because this list is long and every single one of these is part of the family π§ β all of them live in the kernel file ./drivers/tty/n_tty.c:
n_tty_kick_worker(9)n_tty_write_wakeup(9)put_tty_queue(9)reset_buffer_flags(9)n_tty_flush_buffer(9)is_utf8_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)
iykyk π₯ that's a whole friend group right there.
π‘ friendly reminder: the kernel file reference is./drivers/tty/n_tty.cand the man page source dir is./drivers/ttyβ write those down, bestie, you'll want them.
and that's the page!! πΈ coming at you from ./drivers/tty, dated October 2026, signed off as is_continuation(9) β go check those continuation characters, ily, 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