X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4CBC5B4E.3090002@cornell.edu> Date: Mon, 18 Oct 2010 10:35:58 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: getting 'clear' to work in Emacs shell References: <287016 DOT 30328 DOT qm AT web56705 DOT mail DOT re3 DOT yahoo DOT com> In-Reply-To: <287016.30328.qm@web56705.mail.re3.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 10/18/2010 9:53 AM, Jeff Rancier wrote: > GNU Emacs 21.3.1 (i386-msvc-nt5.1.2600) of 2003-03-27 on buffy > GNU bash, version 3.2.51(24)-release (i686-pc-cygwin) > CYGWIN_NT-5.1 1.7.7(0.230/5/3) 2010-08-31 09:58 > Microsoft Windows XP Pro - Version 2002, SP3 > > The 'clear' work's in a Cygwin Bash session, > > C106426 AT USLINY2R86KRP8 ~ > $ alias clear > alias clear='cat ~/.cls' > > C106426 AT USLINY2R86KRP8 ~ > $ less .cls > ESC[2J > .cls (END) > > But doesn't within Emacs: > > C-z runs the command shell > which is an interactive compiled Lisp function in `shell'. > (shell&optional BUFFER) > > All I get within an Emacs shell session is the following, without clearing the > screen. Is there some envionment variable I need to set here? > > > bash-3.2$ clear > [2J > bash-3.2$ I'm not sure what you're expecting here. Do you want emacs to delete what's in the *shell* buffer? Or just scroll it so that nothing is visible but the prompt? FWIW, typing 'clear' in an emacs shell buffer under Linux doesn't have any visible effect either. (Here it runs /usr/bin/clear.) So I don't think this has anything to do with Cygwin. Ken Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple