aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-04-26 16:48:38 +0100
committerRon Yorston <rmy@pobox.com>2016-04-26 16:48:38 +0100
commit248a2600a2f4b442101ad568d1994b908bb28d4b (patch)
tree2f78acabf0a2babca275f0ef4d32ad9cd1968b43 /include/mingw.h
parent601f47a2ebcc54c995359c6f87e0eed932329e89 (diff)
downloadbusybox-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/mingw.h')
-rw-r--r--include/mingw.h1
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
157void move_cursor_row(int n); 157void move_cursor_row(int n);
158void reset_screen(void);
158int winansi_putchar(int c); 159int winansi_putchar(int c);
159int winansi_puts(const char *s); 160int winansi_puts(const char *s);
160size_t winansi_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); 161size_t winansi_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);