RetroBASIC

Retrogamecoding(.org) => EGSL => Topic started by: GEEK on October 24, 2013, 01:29:33 AM

Title: clear console?
Post by: GEEK on October 24, 2013, 01:29:33 AM
does anyone know how to clear the console output in egsl?
Title: Re: clear console?
Post by: Cybermonkey on October 24, 2013, 08:13:06 AM
There is no special function for this because EGSL is for graphical windows. Try CLScript instead there you'll have a cls() to clear the console output.
Title: Re: clear console?
Post by: cvirus on October 24, 2013, 06:16:12 PM
In Lua you can use

Code: [Select]
os.execute( "cls" )
Title: Re: clear console?
Post by: GEEK on October 24, 2013, 09:52:37 PM
i know its for graphics windows, sry, i am a little unclear... i meant for the egsl ide...
Title: Re: clear console?
Post by: cvirus on October 25, 2013, 10:31:05 AM
For the graphic windows you can use
Code: [Select]
cls()
And for the console
Code: [Select]
os.execute("cls").
Title: Re: clear console?
Post by: GEEK on October 25, 2013, 05:34:34 PM
take a look at the attachment...
if i use os.execute("cls") I get this:
Title: Re: clear console?
Post by: Cybermonkey on October 25, 2013, 07:57:06 PM
Sorry, you can't clear the "console" of the editor.
Title: Re: clear console?
Post by: GEEK on October 26, 2013, 01:49:10 AM
ok, thanks again (:
Title: Re: clear console?
Post by: cvirus on October 26, 2013, 11:03:48 AM
Sorry, in lua consoloe is possible to clear like that, i did not know that ESGL was not possible.