git.droids-corp.org
/
libcmdline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c0e81f
)
cmdline: clear line when exiting pager
author
Olivier Matz
<zer0@droids-corp.org>
Fri, 6 May 2011 10:16:57 +0000
(12:16 +0200)
committer
Olivier 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
patch
|
blob
|
history
diff --git
a/src/lib/cmdline_rdline.c
b/src/lib/cmdline_rdline.c
index
8d07b02
..
d0a116e
100644
(file)
--- 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);