From 601f47a2ebcc54c995359c6f87e0eed932329e89 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 26 Apr 2016 16:45:09 +0100 Subject: lineedit: move console viewport to cursor on keypress When a normal *nix terminal has been scrolled back through its buffer, any keypress will return to the cursor position. Add code to lineedit.c to do the same for the Windows console. --- win32/winansi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/winansi.c b/win32/winansi.c index 5d4adbec8..ebe831593 100644 --- a/win32/winansi.c +++ b/win32/winansi.c @@ -125,7 +125,7 @@ static void erase_till_end_of_screen(void) } -static void move_cursor_row(int n) +void move_cursor_row(int n) { CONSOLE_SCREEN_BUFFER_INFO sbi; -- cgit v1.2.3-55-g6feb