Re: Agnostic clear command...

2001-07-03 Thread paul
Hmm... this used to work in old dos: cls > clear.txt type clear.txt This would clear the screen. Now you just get an ascii representation of the clear code. Does this mean than that you cannot clear the screen in Win32 just by printing an ascii sequence? Or perhaps we need device=c:

Re[2]: Agnostic clear command...

2001-07-02 Thread Tim Musson
Hey Michael, Monday, July 02, 2001, 4:32:10 PM, my MUA believes you used (X-Mailer not set) to write: >> You are correct. I believe that the backticks work on the >> shell, so I replace `cls` with system("cls") and at least my screen >> cleared as it was suppose to. MF> Given the code sho

Re: Agnostic clear command...

2001-07-02 Thread Michael Fowler
On Mon, Jul 02, 2001 at 12:24:15PM -0700, Wagner-David wrote: > You are correct. I believe that the backticks work on the shell, so > I replace `cls` with system("cls") and at least my screen cleared as it was > suppose to. Given the code shown, you have to print $clear for the screen to ac

Re: Agnostic clear command...

2001-07-02 Thread Brett W. McCoy
On Mon, 2 Jul 2001, Craig S Monroe wrote: > Someone posted this to the list a couple of weeks back. > It does not appear to be working > I cannot seem to find the reference to $^0 > > my $clear; > if ($^O =~ /mswin/i || $^O =~ /dos/i) { > $clear = `cls`; > } > elsif ($^O eq 'linux') { > $cl

RE: Agnostic clear command...

2001-07-02 Thread Wagner-David
Beginners@Perl (E-mail) Subject: Agnostic clear command... Someone posted this to the list a couple of weeks back. It does not appear to be working I cannot seem to find the reference to $^0 my $clear; if ($^O =~ /mswin/i || $^O =~ /dos/i) { $clear = `cls`; } elsif ($^O eq 'linux'

Agnostic clear command...

2001-07-02 Thread Craig S Monroe
Someone posted this to the list a couple of weeks back. It does not appear to be working I cannot seem to find the reference to $^0 my $clear; if ($^O =~ /mswin/i || $^O =~ /dos/i) { $clear = `cls`; } elsif ($^O eq 'linux') { $clear = `clear`; } Thanks... Craig [EMAIL PROTECTED] Pager N