From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Daniel Jensen Newsgroups: gmane.emacs.help Subject: Re: color codes in eshell Date: Mon, 10 Mar 2003 22:20:47 +0100 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <86smtux6j4.fsf@bigwalter.net> References: Reply-To: daniel@bigwalter.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047331646 1206 80.91.224.249 (10 Mar 2003 21:27:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2003 21:27:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 10 22:27:24 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18sUnr-0000It-00 for ; Mon, 10 Mar 2003 22:27:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18sUmG-0001aB-00 for gnu-help-gnu-emacs@m.gmane.org; Mon, 10 Mar 2003 16:25:44 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.r-kom.de!fu-berlin.de!uni-berlin.de!as16-3-5.ld.bonet.SE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: as16-3-5.ld.bonet.se (217.215.193.155) Original-X-Trace: fu-berlin.de 1047331247 67231957 217.215.193.155 (16 [147297]) User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.3.50 X-Face: V#Q~dP"3Xk2A'$Jvn%"9_^LdY$; Stegs`+b'mrU~_'U=|ypr#s!x][|njjO^)zezDFO lr;3Q!CE@|VA<6s@pZ"=BCp#z@We.xxR%[I#I; yLZjlJPM,U$G*w1s6)6("]T&+Kybuq4D(445+S$Z EJJ}pPqH#&ZIvlgm,ke>ug>AzSe5J0/5a' Cancel-Lock: sha1:Iv/HaRRcbmg1i9ooNLM9Ac/ec74= Original-Xref: shelby.stanford.edu gnu.emacs.help:110964 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7464 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7464 Alexander Nikolov writes: > I am very enthusiastic about using a shell from inside emacs but I > find eshell has some frustrating weaknesses. First, the documentation > is far from complete. Second, I have this problem with color codes: > When I log in as a normal user everything is displayed > correctly. However, when I am root color codes are displayed as numbers > and letters in between the useful text. There is no shell history in > root mode, either. I hope this can be fixed with some lisp code but > sadly I have very limited knowledge of the language and the > implementation in emacs. > Suggestions? Try adding "su" to `eshell-visual-commands'. It'll make su open in a terminal emulation buffer, which will hopefully be able to interpret the color codes correctly. I suppose it will also make the (bash?) history available to you. -- Daniel Jensen $ (format (concat "mailto:" "%s@%s.%s") "daniel" "bigwalter" "net")