From aa3595b3d38ecc6b86b351ac215829f0de58d911 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 26 Apr 2016 13:13:59 +0100 Subject: winansi: add a routine to clear the screen buffer 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. --- miscutils/less.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') 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) printf("\033[999;999H" "\033[6n"); #endif #if ENABLE_PLATFORM_MINGW32 - puts(CLEAR); + reset_screen(); #endif buffer_fill_and_print(); } -- cgit v1.2.3-55-g6feb