| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| Subject: | RE: Clearing the COMPLETE screen. |
| Date: | Mon, 27 Feb 2006 10:28:36 -0500 |
| Message-ID: | <4C89134832705D4D85A6CD2EBF38AE0F146893@PAUMAILU03.ags.agere.com> |
| From: | "Williams, Gerald S \(Jerry\)" <gsw AT agere DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| 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 |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id k1RFSwSP030593 |
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'".)
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.
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). :-)
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |