X-Recipient: archive-cygwin@delorie.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@cygwin.com
From: Oleksandr Gavenko <gavenko@bifit.com.ua>
Subject: Re: getting 'clear' to work in Emacs shell
Date: Tue, 19 Oct 2010 12:06:27 +0300
Lines: 21
Message-ID: <i9jn2h$d90$1@dough.gmane.org>
References: <287016.30328.qm@web56705.mail.re3.yahoo.com> <i9jmdt$a22$1@dough.gmane.org>
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: <i9jmdt$a22$1@dough.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

