tty: Add 'noclear' + 'nowait' options to built-in and external tty's

This patch aligns the two tty configuration stanzas, thus clear and wait
are now the default for both.

    tty [LVLS] <DEV> [BAUD] [noclear] [nowait] [TERM]
    tty [LVLS] <CMD> <ARGS> [noclear] [nowait]

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-09-01 06:10:08 +02:00
1 parent f029ba2111
commit 529b39ebba
3 files changed
+13 -9

No files matched your search

+2 -2
View File
@@ -381,9 +381,9 @@ void tty_start(finit_tty_t *tty)
}
if (!tty->cmd)
tty->pid = run_getty(dev, tty->baud, tty->term, tty->noclear, is_console);
tty->pid = run_getty(dev, tty->baud, tty->term, tty->noclear, tty->nowait, is_console);
else
tty->pid = run_getty2(dev, tty->cmd, tty->args, tty->nowait, is_console);
tty->pid = run_getty2(dev, tty->cmd, tty->args, tty->noclear, tty->nowait, is_console);
}
void tty_stop(finit_tty_t *tty)