void shell_move_eol(EditState *e) { if (e->interactive) { ShellState *s = e->b->priv_data; tty_write(s, "\005", -1); /* Control-E */ } else { text_move_eol(e); } }
void shell_move_eol(EditState *e) { if (e->interactive) { ShellState *s = e->b->priv_data; char ch; ch = 5; tty_write(s, &ch, 1); } else { text_move_eol(e); } }