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 /miscutils/less.c | |
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 'miscutils/less.c')
-rw-r--r-- | miscutils/less.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 014a649e0..cc0e20bc7 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
@@ -1068,7 +1068,7 @@ static void reinitialize(void) | |||
1068 | printf("\033[999;999H" "\033[6n"); | 1068 | printf("\033[999;999H" "\033[6n"); |
1069 | #endif | 1069 | #endif |
1070 | #if ENABLE_PLATFORM_MINGW32 | 1070 | #if ENABLE_PLATFORM_MINGW32 |
1071 | puts(CLEAR); | 1071 | reset_screen(); |
1072 | #endif | 1072 | #endif |
1073 | buffer_fill_and_print(); | 1073 | buffer_fill_and_print(); |
1074 | } | 1074 | } |