This is the mail archive of the
mailing list for the Cygwin project.
Re: Control the cygwin terminal with escape sequences
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Philippe Verdret <philippe dot verdret at xps-pro dot com>
- Cc: cygwin at cygwin dot com, <cygwin-xfree at cygwin dot com>
- Date: Mon, 3 Mar 2003 10:51:31 -0500 (EST)
- Subject: Re: Control the cygwin terminal with escape sequences
- Reply-to: cygwin at cygwin dot com
Redirecting to the correct list. Please remove <cygwin-xfree at cygwin
dot com> from replies.
On Mon, 3 Mar 2003, Philippe Verdret wrote:
> i want to control the cygwin terminal with escape sequences generated
> by a Perl program.
> I can clear the screen with the echo command:
> % echo -e "\033[H\033[J"
> but if i write a small inline perl program, i can't:
> % perl -e 'print "\033[H\033[J"'
> This doesn't work even if i put the screen in 'raw mode' without echo
> (with system('stty -echo raw') in the perl program).
> Can you help me?
Works for me (using cygwin-1.3.20, bash-2.05b-8 and perl-5.6.1)... You
might want to report your problem properly, as described in
<http://cygwin.com/bugs.html>. Also, check that your perl one-liner
outputs exactly the right sequence (by piping it to "od -c", for example).
|\ _,,,---,,_ pechtcha at cs dot nyu dot edu
ZZZzz /,`.-'`' -. ;-;;,_ igor at watson dot ibm dot com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html