void shell_move_bol(EditState *e) { if (e->interactive) { ShellState *s = e->b->priv_data; tty_write(s, "\001", -1); /* Control-A */ } else { text_move_bol(e); } }
void shell_move_bol(EditState *e) { if (e->interactive) { ShellState *s = e->b->priv_data; char ch; ch = 1; tty_write(s, &ch, 1); } else { text_move_bol(e); } }