> 
> Message: 4
> Date: Sat, 15 Nov 2008 00:19:42 +0800
> From: "Sherwin Daganato" <[EMAIL PROTECTED]>
> Subject: Re: [plug] Perl Question on backticks and system() on Unix [A
>       bit     OT]

> 
> On Fri, Nov 14, 2008 at 6:25 PM, Ludwig Isaac Lim <[EMAIL PROTECTED]>wrote:
> >
> >
> >    The following code below doesn't work:
> >    `/usr/bin/clear`;
> >
> 
> Orly is right. The output of clear(1), which is just escape sequence/s,
> will not reach the terminal because Perl will capture it. Stick with
> system() or just use print().
> 
> On my Mac and Linux, clear(1) is just the equivalent of
>     perl -e 'print "\33[H\33[2J"'
> 
> Remove "\33[H" if you don't want the cursor move to line 1 (*home*).
>
   
    Orly, Sherwin :  Thanks a lot!

    Sherwin, as a test (checking if control characters are the same thoughout 
the Unix family), I
tried running the following below on HP-UX and it worked:
          perl -e 'print "\33[H\33[2J"

    Once again, thank you very much.

Regards,
Ludwig



      
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to