Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Clear Screen?

Status
Not open for further replies.

mrchaos70

Technical User
Apr 15, 2002
7
US
In VB and like in DOS there are ways to CLEAR the screen.
I cannot find any such command for Perl. Is there on out there?

I have a list of options, when they slect one options I want the screen to clear, run the sub, whent he sub ends I want to clear the screen and retrun to the menu.

Any body?
 
Im sorry I know that CLS clears screen in dos...

are you saying that the system('cls'); will clear the output screen?
 
Depending on your 'output screen'. If you are creating a web-based CGI script, then no. It will do nothing. If you are creating a TK/windows based app, then again - that won't work. If however you are creating an application that is presented from a "console" or "terminal", then you can manipulate what is presented from your program by manipulating the terminal. Commands that change the color, clear the screen, etc., that you could type in at your command prompt, can be run through the system() function and their results would affect the presentation of your program.

So the question becomes: What kind of program are you developing?

--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top