Scroll the input window

I was wondering if I should instead make input wrap, but then wordWrap
would need to both support showing formatting and persisting styles
across to strings, and it would need to move the window pad up and down
a bunch, etc.
This commit is contained in:
C. McEnroe 2020-02-05 18:18:25 -05:00
parent eb91347308
commit a7b0ed9907

5
ui.c
View File

@ -220,10 +220,11 @@ void uiDraw(void) {
1, 0,
BOTTOM - 1, RIGHT
);
// TODO: Input scrolling.
int y, x;
getyx(input, y, x);
pnoutrefresh(
input,
0, 0,
0, (x > RIGHT ? x - RIGHT : 0),
BOTTOM, 0,
BOTTOM, RIGHT
);