diff options
author | Ron Yorston <rmy@pobox.com> | 2016-04-26 16:48:38 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2016-04-26 16:48:38 +0100 |
commit | 248a2600a2f4b442101ad568d1994b908bb28d4b (patch) | |
tree | 2f78acabf0a2babca275f0ef4d32ad9cd1968b43 /include | |
parent | 601f47a2ebcc54c995359c6f87e0eed932329e89 (diff) | |
download | busybox-w32-248a2600a2f4b442101ad568d1994b908bb28d4b.tar.gz busybox-w32-248a2600a2f4b442101ad568d1994b908bb28d4b.tar.bz2 busybox-w32-248a2600a2f4b442101ad568d1994b908bb28d4b.zip |
winansi: revert to previous console behaviour for vi/less
Recent changes to make the Windows console behave more like a *nix
terminal didn't work too well for vi/less. On *nix the terminal
buffer can't be scrolled while such screen-based applications are
running. In the Windows console this remained possible and led to
confusion.
Add a new routine to allow vi/less to revert to their previous
behaviour where the cursor is positioned at the top of the buffer
and the entire buffer is cleared.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index 5faef41bf..555fa96b7 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -155,6 +155,7 @@ int mingw_pclose(FILE *fd); | |||
155 | */ | 155 | */ |
156 | 156 | ||
157 | void move_cursor_row(int n); | 157 | void move_cursor_row(int n); |
158 | void reset_screen(void); | ||
158 | int winansi_putchar(int c); | 159 | int winansi_putchar(int c); |
159 | int winansi_puts(const char *s); | 160 | int winansi_puts(const char *s); |
160 | size_t winansi_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); | 161 | size_t winansi_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); |