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, SP3The 'clear' work's in a Cygwin Bash session, c106...@usliny2r86krp8 ~ $ alias clear alias clear='cat ~/.cls' c106...@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

