X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.7 required=5.0 tests=AWL,BAYES_40,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Oleksandr Gavenko Subject: Re: getting 'clear' to work in Emacs shell Date: Tue, 19 Oct 2010 12:06:27 +0300 Lines: 21 Message-ID: References: <287016 DOT 30328 DOT qm AT web56705 DOT mail DOT re3 DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 19.10.2010 11:55, Oleksandr Gavenko wrote: > > shell-mode does not understand terminal ESC sequences. > > For example there exist special functions: > > ansi-color-for-comint-mode-on > ansi-color-for-comint-mode-off > I want say that some useful terminal ESC sequences Emacs shell-mode can handle properly. Other like generated by clear is not. But in shell-mode Emacs set TERM=dumb, from manual for 'clear' it uses terminfo db, so must not generate any output. So or your terminfo db damaged or you have invalid TERM env var in shell-mode (for example it can be set in ~/.bashrc). -- 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