src/cforth/linenoise.c
void linenoiseClearScreen(void) {
/* This is a dodgy thing to do because it clears the entire scrolling */
/* history, not just the currently visible part of the screen */
#if 0
    CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
    COORD topleft = {0, 0};
    HANDLE ofd = GetStdHandle(STD_OUTPUT_HANDLE);

    (void)GetConsoleScreenBufferInfo(ofd, &csbiInfo);
    FillConsoleOutputCharacter(ofd, (TCHAR) ' ',
			       csbiInfo.dwSize.X * csbiInfo.dwSize.Y,
			       topleft, NULL);
#endif
}
/* Clear the screen. Used to handle ctrl+l */
Clear the screen. Used to handle ctrl+l
Clear the screen . Used to handle ctrl + l
void linenoiseClearScreen(void) {
#if 0
    CONSOLE_SCREEN_BUFFER_INFO csbiInfo;
    COORD topleft = {0, 0};
    HANDLE ofd = GetStdHandle(STD_OUTPUT_HANDLE);
    (void)GetConsoleScreenBufferInfo(ofd, &csbiInfo);
    FillConsoleOutputCharacter(ofd, (TCHAR) ' ',
			       csbiInfo.dwSize.X * csbiInfo.dwSize.Y,
			       topleft, NULL);
#endif
}
void linenoiseClearScreen ( void ) { #if 0 CONSOLE_SCREEN_BUFFER_INFO csbiInfo ; COORD topleft = { 0 , 0 } ; HANDLE ofd = GetStdHandle ( STD_OUTPUT_HANDLE ) ; ( void ) GetConsoleScreenBufferInfo ( ofd , & csbiInfo ) ; FillConsoleOutputCharacter ( ofd , ( TCHAR ) ' ' , csbiInfo . dwSize . X * csbiInfo . dwSize . Y , topleft , NULL ) ; #endif }
Clear the screen.
Clear the screen .
/* This is a dodgy thing to do because it clears the entire scrolling */ /* history, not just the currently visible part of the screen */