diff options
| author | Ron Yorston <rmy@pobox.com> | 2016-04-26 13:13:59 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2016-04-26 13:48:18 +0100 |
| commit | aa3595b3d38ecc6b86b351ac215829f0de58d911 (patch) | |
| tree | 2f78acabf0a2babca275f0ef4d32ad9cd1968b43 /include | |
| parent | fd476d8629d489245e18ec278d3c846ab1359eec (diff) | |
| download | busybox-w32-ansi.tar.gz busybox-w32-ansi.tar.bz2 busybox-w32-ansi.zip | |
winansi: add a routine to clear the screen bufferansi
And use it to restore the old behaviour of vi and less: they reset
the cursor to the top of the buffer and clear it.
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); |
