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

Clear screan on init for Win32...

parent fc6d81e9
No related branches found
No related tags found
No related merge requests found
......@@ -283,6 +283,8 @@ int win32_getche(void)
int win32_initciolib(long inmode)
{
DWORD conmode;
char *buf;
int i,j;
if(!isatty(fileno(stdin)))
return(0);
......@@ -302,6 +304,16 @@ int win32_initciolib(long inmode)
win32_textmode(inmode);
cio_api.mouse=1;
j=vid_modes[modeidx].ysize*vid_modes[modeidx].xsize*2;
buf=(char *)malloc(j);
if(buf==NULL)
return(0);
for(i=0;i<j;) {
buf[i++]=32;
buf[i++]=7;
}
win32_puttext(1,1,vid_modes[modeidx].xsize,vid_modes[modeidx].ysize,buf);
gree(buf);
return(1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment