From: Pierre Habouzit Date: Sat, 10 Nov 2007 18:33:45 +0000 (+0100) Subject: Event better: have an ACS_HLINE to erase status line. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=5d5711494f7df152a993edddae5cbec045440c56;p=apps%2Fmadmutt.git Event better: have an ACS_HLINE to erase status line. Signed-off-by: Pierre Habouzit --- diff --git a/lib-ui/curs_lib.c b/lib-ui/curs_lib.c index dc42e30..e8fb02e 100644 --- a/lib-ui/curs_lib.c +++ b/lib-ui/curs_lib.c @@ -148,7 +148,7 @@ void mutt_edit_file(const char *data) getmaxyx(main_w, mh, mw); SigChild = 0; - rt = madtty_create(mh - 1, mw); + rt = madtty_create(mh - 2, mw); pid = madtty_forkpty(rt, args[0], args, &pty); if (pid < 0) { madtty_destroy(rt); @@ -156,6 +156,9 @@ void mutt_edit_file(const char *data) return; } + SETCOLOR(main_w, MT_COLOR_SIDEBAR); + mvwhline(main_w, 0, 0, ACS_HLINE, mw); + nodelay(stdscr, true); gettimeofday(&next, NULL); while (!SigChild) { @@ -181,7 +184,7 @@ void mutt_edit_file(const char *data) gettimeofday(&tv, NULL); if (dirty && is_expired(tv, next)) { - madtty_draw(rt, main_w, 0, 0); + madtty_draw(rt, main_w, 1, 0); wrefresh(main_w); dirty = 0; next = timeval_add(tv, slice);