Skip to content
Snippets Groups Projects
Commit 9f3f22ca authored by deuce's avatar deuce
Browse files

Clear screen before suspend/after resume.

parent 8fbc6115
No related branches found
No related tags found
No related merge requests found
......@@ -266,6 +266,7 @@ int try_conio_init(int mode)
CIOLIBEXPORT void CIOLIBCALL suspendciolib(void)
{
ciolib_clrscr();
if(cio_api.suspend != NULL)
cio_api.suspend();
initialized=-1;
......@@ -279,6 +280,7 @@ CIOLIBEXPORT int CIOLIBCALL initciolib(int mode)
case -1:
if(cio_api.resume != NULL)
cio_api.resume();
ciolib_clrscr();
initialized=1;
return(0);
}
......
......@@ -387,7 +387,6 @@ static void * win32_suspendbuf=NULL;
void win32_suspend(void)
{
clrscr();
SetConsoleMode(GetStdHandle(STD_INPUT_HANDLE), orig_in_conmode);
SetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), orig_out_conmode);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment