| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | RE: Clearing the COMPLETE screen. |
| Date: | Fri, 24 Feb 2006 15:28:56 -0000 |
| Message-ID: | <008401c63957$067c5f70$a501a8c0@CAM.ARTIMI.COM> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <4C89134832705D4D85A6CD2EBF38AE0F14680F@PAUMAILU03.ags.agere.com> |
| 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 24 February 2006 15:05, Williams, Gerald S (Jerry) wrote:
> Dave Korn wrote:
>> I generally use a line like this:
>> alias cls='cmd -c cls'
>
> For me, that has to read 'cmd /c cls' or it doesn't work. :-P
Heh, for me too.
> This was mildly annoying me for a while as well. I finally
> broke down and took a look into it. It looks like the ESC c
> (reset terminal) control works under both RXVT and standard
> "Command" windows. It resets the scrollbar in addition to
> clearing the screen.
>
> So I just changed my "clear screen" alias to:
>
> alias cs='echo -n "\ec"'
For me, that has to read 'echo -e "\033c"' or it doesn't work. :-P~~~
> YMMV, of course.
It certainly does: the ESC-c sequence doesn't reset the scrollback buffer
position for me.
Of course, I'm using a DOS prompt and CYGWIN=notty. YMMV!
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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 |