Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emacs shell has strange characters
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
acwarrie
n00b
n00b


Joined: 23 Nov 2004
Posts: 9

PostPosted: Wed May 31, 2006 3:35 pm    Post subject: emacs shell has strange characters Reply with quote

When I go into shell mode from within emacs by typing Alt-x shell <enter>, there are strange characters. For example, when I type ls in a directory containing a single file "testFile", this is the output I get:

^[[0m^[[0mtestFile^[[0m

What is the problem here ?
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Wed May 31, 2006 4:00 pm    Post subject: Reply with quote

Code:
$ type ls
ls is aliased to `ls --color=auto'

You are seeing the color control sequences. You can either
Code:
unalias ls

and the sequences will not be used, or load ansi-color, and the sequences will be translated to colors.
See this EmacsWiki page for more on ansi-color.
Back to top
View user's profile Send private message
acwarrie
n00b
n00b


Joined: 23 Nov 2004
Posts: 9

PostPosted: Wed May 31, 2006 4:08 pm    Post subject: Reply with quote

Thank you ! It works ...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum