aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-04-26 16:45:09 +0100
committerRon Yorston <rmy@pobox.com>2016-04-26 16:45:09 +0100
commit601f47a2ebcc54c995359c6f87e0eed932329e89 (patch)
treeda17890f38659af2d2fb6b00872fe7b81a2472b9 /include
parent0d9e95c2dbc422ffa3db10132db3154357c461be (diff)
downloadbusybox-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 'include')
-rw-r--r--include/mingw.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h
index f30338ba8..5faef41bf 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -154,6 +154,7 @@ int mingw_pclose(FILE *fd);
154 * ANSI emulation wrappers 154 * ANSI emulation wrappers
155 */ 155 */
156 156
157void move_cursor_row(int n);
157int winansi_putchar(int c); 158int winansi_putchar(int c);
158int winansi_puts(const char *s); 159int winansi_puts(const char *s);
159size_t winansi_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); 160size_t winansi_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);