From: Olivier Matz Date: Fri, 6 May 2011 10:16:57 +0000 (+0200) Subject: cmdline: clear line when exiting pager X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d36bdc3ebd269ee799c6032883106450c045af12;p=libcmdline.git cmdline: clear line when exiting pager Signed-off-by: Olivier Matz --- diff --git a/src/lib/cmdline_rdline.c b/src/lib/cmdline_rdline.c index 8d07b02..d0a116e 100644 --- a/src/lib/cmdline_rdline.c +++ b/src/lib/cmdline_rdline.c @@ -215,6 +215,8 @@ rdline_parse_char(struct rdline *rdl, char c) /* display asynchrounous printf if any */ if (rdl->pager_buf != NULL) { if (cmd == VT100_STD_CHAR && c == 'q') { + rdline_printf(rdl, vt100_home); + rdline_printf(rdl, vt100_clear_right); rdline_asyncpager_reset(rdl); if (rdl->pager_cb != NULL) { rdl->pager_cb(rdl, rdl->pager_arg);