Page 1 of 1

ClearConsole() - not working?

Posted: Sat Apr 27, 2024 3:23 pm
by zonemaster60
Hello,
Testing 6.11 beta 1
For the life of me I can't get ClearConsole() to do just that, clear the console.

for example:

Code: Select all

OpenConsole()

PrintN("Something...")
PrintN("Something else...")

ClearConsole()

Input()

End
This should have left a blank screen and a blinking cursor before ending the program (I assume)
The cursor was there awaiting input but the two lines were still on the screen

What am I doing wrong?
Thanks for the help.

Re: ClearConsole() - not working?

Posted: Sat Apr 27, 2024 3:33 pm
by Kiffi
Take a look at the documentation: ClearConsole()
The console has to be in graphical mode, see EnableGraphicalConsole().

Code: Select all

OpenConsole()

EnableGraphicalConsole(1) ; <- !

PrintN("Something...")
PrintN("Something else...")

ClearConsole()

Input()

End

Re: ClearConsole() - not working?

Posted: Sat Apr 27, 2024 8:17 pm
by zonemaster60
ok got it thank you. lol