ClearConsole() - not working?

Just starting out? Need help? Post your questions and find answers here.
zonemaster60
New User
New User
Posts: 4
Joined: Tue Apr 11, 2023 3:55 pm

ClearConsole() - not working?

Post 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.
User avatar
Kiffi
Addict
Addict
Posts: 1485
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: ClearConsole() - not working?

Post 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
Hygge
zonemaster60
New User
New User
Posts: 4
Joined: Tue Apr 11, 2023 3:55 pm

Re: ClearConsole() - not working?

Post by zonemaster60 »

ok got it thank you. lol
Post Reply