From a7b0ed99079065f54db83160dfe651ce9d50a568 Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Wed, 5 Feb 2020 18:18:25 -0500 Subject: 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. --- ui.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ui.c') diff --git a/ui.c b/ui.c index da28b76..12c8541 100644 --- a/ui.c +++ b/ui.c @@ -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 ); -- cgit 1.4.1-2-gfad0