From 707812a0784a2ed81d37e35dde98a8c1f4170101 Mon Sep 17 00:00:00 2001 From: Felicity Tarnell Date: Fri, 7 Mar 2014 22:24:33 +0000 Subject: [PATCH] Draw the input prompt in the right place. --- tts.c | 2 +- ui.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tts.c b/tts.c index 8315bae..25e9aff 100644 --- a/tts.c +++ b/tts.c @@ -354,7 +354,7 @@ struct kevent evs[2], rev; cbreak(); noecho(); nonl(); - nodelay(stdscr, 1); + nodelay(stdscr, TRUE); pair_content(0, &default_fg, &default_bg); diff --git a/ui.c b/ui.c index c5aa9fd..f7c9688 100644 --- a/ui.c +++ b/ui.c @@ -161,7 +161,7 @@ histent_t *histpos = NULL; pos = STRLEN(input); } - pwin = newwin(1, COLS, LINES - 2, 0); + pwin = newwin(1, COLS, LINES - 1, 0); keypad(pwin, TRUE); wattr_on(pwin, style_fg(sy_status), NULL); @@ -301,7 +301,8 @@ end: ; curs_set(0); delwin(pwin); - wtouchln(statwin, 1, 1, 1); + wtouchln(statwin, 0, 1, 1); + wrefresh(statwin); hist_add(hist, input); return STRDUP(input); }