cmdline: clear line when exiting pager
authorOlivier Matz <zer0@droids-corp.org>
Fri, 6 May 2011 10:16:57 +0000 (12:16 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Fri, 6 May 2011 10:16:57 +0000 (12:16 +0200)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
src/lib/cmdline_rdline.c

index 8d07b02..d0a116e 100644 (file)
@@ -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);