delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/02/13/12:30:23

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 13 Feb 2008 12:29:35 -0500
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Re: tcsh clear command?
Message-ID: <20080213172935.GA28644@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <fou0fh$rbu$1 AT ger DOT gmane DOT org> <31DDB7BE4BF41D4888D41709C476B6570929AAD1 AT NIHCESMLBX5 DOT nih DOT gov>
MIME-Version: 1.0
In-Reply-To: <31DDB7BE4BF41D4888D41709C476B6570929AAD1@NIHCESMLBX5.nih.gov>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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 Wed, Feb 13, 2008 at 12:24:55PM -0500, Buchbinder, Barry (NIH/NIAID) [E] wrote:
>Andrew DeFaria wrote on Wednesday, February 13, 2008 12:51 AM:
>> Dave Korn wrote:
>>> On 12 February 2008 22:35, Larry Hall (Cygwin) wrote:
>>> 
>>>> Christopher Stack wrote:
>>>>> i've noticed in the cygwin implementation of tcsh that the clear
>>>>> command doesn't exist. is it in some other format or is there a
>>>>> module to add this? i thought it was part of the basic tcsh.
>>>> <http://cygwin.com/cgi-bin2/package-grep.cgi?grep=clear%5C.exe>
>>> 
>>> I always find
>>> 
>>> alias clear cmd /c cls
>>> 
>>> works best in a DOS console, it has the benefit of resetting the
>>> scroll buffer where clear only blanks the currently-visible area.
>>> 
>>> cheers,
>>> DaveK
>> And if one is not using a "DOS console" (<- who the hell would use
>> that! 
>> Yuck)?
>> --
>> Andrew DeFaria <http://defaria.com>
>> I just got a physical and asked the doctor, "How do I stand?" He
>> said, "That's what puzzles me!" 
>
>I do not know what the syntax is for alias in tcsh, but the following work in bash.
>
>alias clear='echo -ne \\e[2J'
>alias clear='echo -ne "\e[2J"'

Or just type CTRL-L in bash, tcsh, and zsh if you want to clear the screen.

cgf

--
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