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.
Tento commit je obsažen v:
C. McEnroe 2020-02-05 18:18:25 -05:00
rodič eb91347308
revize a7b0ed9907

5
ui.c
Zobrazit soubor

@ -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
);