GNU bug report logs - #6085
Eshell doesn't handle ANSI escapes/colors well

Previous Next

Package: emacs;

Reported by: Ken Hori <fplemma <at> gmail.com>

Date: Mon, 3 May 2010 03:55:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#6085: Eshell doesn't handle ANSI escapes/colors well
Date: Mon, 03 May 2010 07:37:31 +0200
Ken Hori <fplemma <at> gmail.com> writes:

> From Emacs bzr HEAD:
>
> Eshell doesn't handle a terminal escape code like ^[.
>
> My eshell-output-filter-functions:
>  '(eshell-output-filter-functions (quote (eshell-handle-ansi-color
> eshell-handle-control-codes eshell-watch-for-password-prompt
> eshell-postoutput-scroll-to-bottom)))
>
> Example:
> [~/emacs.20100501/lisp/eshell]$ export TERM=xterm-256color
> [~/emacs.20100501/lisp/eshell]$ *grep --color=auto ansi esh-*
> ^[[Kesh-mode.el^[[K^[[K:^[[K    eshell-handle-^[[Kansi^[[K-color
> ^[[Kesh-mode.el^[[K^[[K:^[[K(autoload
> '^[[Kansi^[[K-color-apply-on-region "^[[Kansi^[[K-color")
> ^[[Kesh-mode.el^[[K^[[K:^[[K(defun eshell-handle-^[[Kansi^[[K-color ()
> ^[[Kesh-mode.el^[[K^[[K:^[[K  (^[[Kansi^[[K-color-apply-on-region
> eshell-last-output-start
> ^[[Kesh-mode.el^[[K^[[K:^[[K		   'eshell-handle-^[[Kansi^[[K-color)
> ^[[Kesh-var.el^[[K^[[K:^[[K;; is identical to just saying (lisp); but
> with the variable exp^[[Kansi^[[Kon
>
>
> `term-handle-ansi-escape' from term.el seems to be be handling
> ansi escapes very well. Maybe we can integrate  a modified
> version of it into Eshell.

This was working some time ago so maybe looking at what have changed and
reenable this feature should be good.

-- 
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/






This bug report was last modified 15 years and 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.