www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
To: | cygwin AT cygwin DOT com |
From: | Kelly Felkins <felkinator-gmane AT yahoo DOT com> |
Subject: | emacs shell mode prompt with escape sequences "\[\033]0;\w\007" |
Date: | Wed, 2 Mar 2005 22:02:53 +0000 (UTC) |
Lines: | 34 |
Message-ID: | <loom.20050302T194426-703@post.gmane.org> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | main.gmane.org |
User-Agent: | Loom/3.14 (http://gmane.org/) |
X-Loom-IP: | 198.129.91.77 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0) |
X-Gmane-MailScanner: | Found to be clean |
X-Gmane-MailScanner: | Found to be clean |
X-MailScanner-From: | goc-cygwin AT m DOT gmane DOT org |
X-MailScanner-To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
I'm looking for the best way to eliminate the escape sequences displayed in emacs shell mode. example: --------------------- \[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ------------------------------ It is clear these are from the shell prompt that I believe is being established by /etc/profile. Here is the code: ------------------------------ # Set a default prompt of: user AT host and current_directory PS1='\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' ------------------------------ At the risk of exposing my ignorance of shell initialization, I'm not sure how best to fix this. First, I think the issue is that the emacs shell does not know how to interpret these sequences. Can emacs be configured to correct this? Second, assuming that it is not convenient to teach emacs how to handle these sequences, how best to remove them? I tried creating a .emacs_sh file, that reset the PS1. This worked, but apparently the .emacs_sh file is executed after the first prompt display, so there is still the initial prompt display with these escape sequences. Finally, whatever the best solution, can we add it to the distribution, so that a that a fresh install of cygwin does not exhibit this behavior. -Kelly -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |