diff options
author | Ron Yorston <rmy@pobox.com> | 2016-04-26 16:45:09 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-04-26 16:45:09 +0100 |
commit | 601f47a2ebcc54c995359c6f87e0eed932329e89 (patch) | |
tree | da17890f38659af2d2fb6b00872fe7b81a2472b9 /win32 | |
parent | 0d9e95c2dbc422ffa3db10132db3154357c461be (diff) | |
download | busybox-w32-601f47a2ebcc54c995359c6f87e0eed932329e89.tar.gz busybox-w32-601f47a2ebcc54c995359c6f87e0eed932329e89.tar.bz2 busybox-w32-601f47a2ebcc54c995359c6f87e0eed932329e89.zip |
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.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/winansi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
125 | 125 | ||
126 | } | 126 | } |
127 | 127 | ||
128 | static void move_cursor_row(int n) | 128 | void move_cursor_row(int n) |
129 | { | 129 | { |
130 | CONSOLE_SCREEN_BUFFER_INFO sbi; | 130 | CONSOLE_SCREEN_BUFFER_INFO sbi; |
131 | 131 | ||