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. --- include/mingw.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/mingw.h') 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); */ void move_cursor_row(int n); +void reset_screen(void); int winansi_putchar(int c); int winansi_puts(const char *s); size_t winansi_fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); -- cgit v1.2.3-55-g6feb