Draw the input prompt in the right place.
This commit is contained in:
parent
ca908281b4
commit
707812a078
2 changed files with 4 additions and 3 deletions
2
tts.c
2
tts.c
|
|
@ -354,7 +354,7 @@ struct kevent evs[2], rev;
|
||||||
cbreak();
|
cbreak();
|
||||||
noecho();
|
noecho();
|
||||||
nonl();
|
nonl();
|
||||||
nodelay(stdscr, 1);
|
nodelay(stdscr, TRUE);
|
||||||
|
|
||||||
pair_content(0, &default_fg, &default_bg);
|
pair_content(0, &default_fg, &default_bg);
|
||||||
|
|
||||||
|
|
|
||||||
5
ui.c
5
ui.c
|
|
@ -161,7 +161,7 @@ histent_t *histpos = NULL;
|
||||||
pos = STRLEN(input);
|
pos = STRLEN(input);
|
||||||
}
|
}
|
||||||
|
|
||||||
pwin = newwin(1, COLS, LINES - 2, 0);
|
pwin = newwin(1, COLS, LINES - 1, 0);
|
||||||
keypad(pwin, TRUE);
|
keypad(pwin, TRUE);
|
||||||
|
|
||||||
wattr_on(pwin, style_fg(sy_status), NULL);
|
wattr_on(pwin, style_fg(sy_status), NULL);
|
||||||
|
|
@ -301,7 +301,8 @@ end: ;
|
||||||
|
|
||||||
curs_set(0);
|
curs_set(0);
|
||||||
delwin(pwin);
|
delwin(pwin);
|
||||||
wtouchln(statwin, 1, 1, 1);
|
wtouchln(statwin, 0, 1, 1);
|
||||||
|
wrefresh(statwin);
|
||||||
hist_add(hist, input);
|
hist_add(hist, input);
|
||||||
return STRDUP(input);
|
return STRDUP(input);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue