From 8708aa73b0fcd27843905be1a70580e2f0c7f47c Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Fri, 3 Jan 2020 00:36:14 -0300 Subject: [PATCH] If it looks stupid but works, is it really stupid? Closes #90 --- internal/c/libqb.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/internal/c/libqb.cpp b/internal/c/libqb.cpp index f91d4dc1f..d112b3831 100644 --- a/internal/c/libqb.cpp +++ b/internal/c/libqb.cpp @@ -11242,13 +11242,15 @@ void sub_cls(int32 method,uint32 use_color,int32 passed){ static uint16 *sp; static uint16 clearvalue; - #ifdef QB64_WINDOWS - if (write_page->console){ //note, I'm lazy and not adding color support for a console - system("cls"); //it's just the simplest way to do things. :P - qbg_sub_locate(1,1,0,0,0,3); + if (write_page->console){ + #ifdef QB64_WINDOWS + system("cls"); //lazy but works + qbg_sub_locate(1,1,0,0,0,3); //is this really necessary? + #else + system("clear"); + #endif return; } - #endif //validate if (passed&2){