1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 14:41:21 +00:00

If it looks stupid but works, is it really stupid? Closes #90

This commit is contained in:
FellippeHeitor 2020-01-03 00:36:14 -03:00
parent 9f89e063f7
commit 8708aa73b0

View file

@ -11242,13 +11242,15 @@ void sub_cls(int32 method,uint32 use_color,int32 passed){
static uint16 *sp; static uint16 *sp;
static uint16 clearvalue; static uint16 clearvalue;
if (write_page->console){
#ifdef QB64_WINDOWS #ifdef QB64_WINDOWS
if (write_page->console){ //note, I'm lazy and not adding color support for a console system("cls"); //lazy but works
system("cls"); //it's just the simplest way to do things. :P qbg_sub_locate(1,1,0,0,0,3); //is this really necessary?
qbg_sub_locate(1,1,0,0,0,3); #else
system("clear");
#endif
return; return;
} }
#endif
//validate //validate
if (passed&2){ if (passed&2){