delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/27/10:35:32

X-Spam-Check-By: sourceware.org
Date: Mon, 27 Feb 2006 10:35:15 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Williams, Gerald S (Jerry)" <gsw AT agere DOT com>
cc: cygwin AT cygwin DOT com
Subject: RE: Clearing the COMPLETE screen.
In-Reply-To: <4C89134832705D4D85A6CD2EBF38AE0F146893@PAUMAILU03.ags.agere.com>
Message-ID: <Pine.GSO.4.63.0602271032270.21682@access1.cims.nyu.edu>
References: <4C89134832705D4D85A6CD2EBF38AE0F146893 AT PAUMAILU03 DOT ags DOT agere DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Mon, 27 Feb 2006, Williams, Gerald S (Jerry) wrote:

> Igor Peshansky wrote:
> > YA typo.  The above should read:
> >
> > alias cs='echo -ne "\ec"'
>
> Yes, this is what you need to do under BASH. I thought I had verified it
> there, but I guess I wasn't getting what I thought I was getting. (I
> mostly use ZSH--at least I knew better than to write "print -n $'\ec'".)

Yes, but "printf '\ec'" works ju-ust fine in bash... :-)  And it may work
in zsh, too.

> In fact, under a Command window it looks like this may end up working
> the same as the "clear" command (for me it does at least clear the
> scroll contents). But if you use RXVT (as I do), sending <ESC>-c does a
> much better job than clear.

Do you set your TERM to "rxvt" or "xterm"?  The control sequence in the
terminfo database may be wrong if you don't use the native "rxvt" terminal
setting.

> At least I did say YMMV. :-)
> gsw
> P.S. It could also be written 'echo -e "\ec\c"', which
>      has an odd alliterative appeal (to me). :-)

Right.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019