aboutsummaryrefslogtreecommitdiff
path: root/miscutils
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 /miscutils
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 'miscutils')
-rw-r--r--miscutils/less.c2
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}