Exemplo n.º 1
0
Arquivo: shell.c Projeto: kjk/qemacs
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);
    }
}
Exemplo n.º 2
0
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);
    }
}