echo_erase_tab(9)
๐ echo_erase_tab(9) ๐
okay bestie, welcome to the Kernel API Manual โ this is the page for echo_erase_tab, and itโs lowkey a tiny but iconic little helper. no cap, every detail is here, so letโs go ๐
โจ
๐ NAME ๐
echo_erase_tab โ add operation to erase a tab ๐
๐ซ SYNOPSIS ๐ซ
void echo_erase_tab (unsigned int num_chars , int after_tab , struct
n_tty_data *ldata );
๐ ARGUMENTS ๐
num_charsโ number of character columns already used ๐งฎafter_tabโ true ifnum_charsstarts after a previous tab ๐ซถldataโn_ttydata ๐ฆ
๐ฆ DESCRIPTION ๐ฆ
Add an operation to the echo buffer to erase a tab. literally thatโs the main character move ๐
Called by the eraser function, which knows how many character columns have been used since either a previous tab or the start of input. slay, itโs keeping track ๐
This information will be used later, along with canon column (if applicable), to go back the correct number of columns. yes bestie, the column math is giving precise โจ
๐ฅ SEE ALSO ๐ฅ
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)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_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)
xoxo, your source/version tag ./drivers/tty ๐ โ dated October 2026 ๐ โ and the page is literally echo_erase_tab(9) ๐ธ. 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