| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| From: | soren AT wonderstorm DOT com |
| To: | cygwin AT cygwin DOT com |
| Date: | Sat, 10 Feb 2001 01:24:26 -0500 |
| MIME-Version: | 1.0 |
| Subject: | clear entire 'doze console buffer? |
| Message-ID: | <3A84984A.27665.C97235A@localhost> |
| X-mailer: | Pegasus Mail for Win32 (v3.12c) |
Hello,
This is not so much a question as a rumination and offering, but I
am of course open to being told something I don't know.
Last time I checked the only way to clear the screen in Cygwin
bash was the CTRL-SHIFT-L combination. And that only clears
what's currently displayed, not the whole buffer ("offscreen" above
the current scroll point). So I figured out a way to do this.
First I define a function suchly:
function Canonize { echo $1 | sed s@'\\'@'/'@g; }
(which can be useful on its own, but of course could be 'inlined' into
the expression below as well).
Then I provide to bash this alias:
alias ncls="`cygpath -paw $(Canonize $COMSPEC)` /c cls"
This works.
Anybody know something I don't, about another way?
soren andersen
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |