help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to discard escape sequences from sub-shell output?


From: Andreas Politz
Subject: Re: How to discard escape sequences from sub-shell output?
Date: Wed, 08 Dec 2010 15:16:21 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Elena <egarrulo@gmail.com> writes:

> Hello,
>
> a sub-shell is sending escape sequences which Emacs doesn't display
> right. I'm talking about the sequences prefixed by "^" in the
> following example output:
>
> Last login: Fri Jun 18 11:09:11 2010 from XXXXX
> ^]0;root@XXXXX:~^[root@XXXXX ~]# ls
> ls
> file-1.cfg              file-10.log         file-100.pcap
> ^]0;root@XXXXX:~^[root@XXXXX ~]#
> ^]0;root@XXXXX:~^[root@XXXXX ~]#
>
> Is there a way to get rid of those sequences?
>
> Thanks.

Put
(ansi-color-for-comint-mode-on)
in your shell hook.

-ap


reply via email to

[Prev in Thread] Current Thread [Next in Thread]