/* Called by the eraser function, which knows how many character columns have been used since either a previous tab or the start of input. This information will be used later, along with canon column (if applicable), to go back the correct number of columns.  */
static void echo_erase_tab(unsigned int num_chars, int after_tab, struct n_tty_data *ldata)
/* Called by the eraser function, which knows how many character columns have been used since either a previous tab or the start of input. This information will be used later, along with canon column (if applicable), to go back the correct number of columns.  */
static void echo_erase_tab(unsigned int num_chars, int after_tab, struct n_tty_data *ldata)
{
    add_echo_byte(ECHO_OP_START, ldata);
    add_echo_byte(ECHO_OP_ERASE_TAB, ldata);
    num_chars &= 7;
    if (after_tab)
    {
        num_chars |= 0x80;
    }
    add_echo_byte(num_chars, ldata);
}