Author Topic: clear console?  (Read 951 times)

GEEK

  • Jr. Member
  • **
  • Posts: 83
  • want to learn c++, if you want to teach me, pm me!
    • View Profile
clear console?
« on: 24. October 2013, 03:29:33 »
does anyone know how to clear the console output in egsl?

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: clear console?
« Reply #1 on: 24. October 2013, 10:13:06 »
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.
Best regards,
Cybermonkey

cvirus

  • Regular Member
  • Jr. Member
  • *
  • Posts: 76
    • View Profile
Re: clear console?
« Reply #2 on: 24. October 2013, 20:16:12 »
In Lua you can use

Code: [Select]
os.execute( "cls" )

GEEK

  • Jr. Member
  • **
  • Posts: 83
  • want to learn c++, if you want to teach me, pm me!
    • View Profile
Re: clear console?
« Reply #3 on: 24. October 2013, 23:52:37 »
i know its for graphics windows, sry, i am a little unclear... i meant for the egsl ide...

cvirus

  • Regular Member
  • Jr. Member
  • *
  • Posts: 76
    • View Profile
Re: clear console?
« Reply #4 on: 25. October 2013, 12:31:05 »
For the graphic windows you can use
Code: [Select]
cls()
And for the console
Code: [Select]
os.execute("cls").

GEEK

  • Jr. Member
  • **
  • Posts: 83
  • want to learn c++, if you want to teach me, pm me!
    • View Profile
Re: clear console?
« Reply #5 on: 25. October 2013, 19:34:34 »
take a look at the attachment...
if i use os.execute("cls") I get this:

Cybermonkey

  • Administrator
  • Hero Member
  • *****
  • Posts: 573
    • View Profile
    • Home of EGSL
Re: clear console?
« Reply #6 on: 25. October 2013, 21:57:06 »
Sorry, you can't clear the "console" of the editor.
Best regards,
Cybermonkey

GEEK

  • Jr. Member
  • **
  • Posts: 83
  • want to learn c++, if you want to teach me, pm me!
    • View Profile
Re: clear console?
« Reply #7 on: 26. October 2013, 03:49:10 »
ok, thanks again (:

cvirus

  • Regular Member
  • Jr. Member
  • *
  • Posts: 76
    • View Profile
Re: clear console?
« Reply #8 on: 26. October 2013, 13:03:48 »
Sorry, in lua consoloe is possible to clear like that, i did not know that ESGL was not possible.