]> git.ozlabs.org Git - petitboot/commit
ui/ncurses: Simplify starting shell
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 5 Jun 2018 00:24:20 +0000 (10:24 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 3 Dec 2018 03:39:57 +0000 (14:39 +1100)
commitb917fc4ec145de2457349bd5df358c89617f1581
treeb408b7c49772024348940e484dca7724cc992266
parent1b72d21bc3713b6c82f56e31e84413e0956fa4ed
ui/ncurses: Simplify starting shell

Instead of calling sh twice to echo the 'exiting' message just call sh
by itself and leave any welcome message to the shell's interactive
config.
Also drop the explicit nc_scr_unpost() in cui_run_cmd() since clear()
will blank out the screen anyway.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
ui/ncurses/nc-cui.c