unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* weird shell in emacs
@ 2006-03-08 23:38 op132650c
  2006-03-09 10:14 ` Peter Dyballa
  0 siblings, 1 reply; 2+ messages in thread
From: op132650c @ 2006-03-08 23:38 UTC (permalink / raw)


When i list my directory in the shell of the emacs (M-x shell), i get the
symbols below showed, instead of a good presentation like i did this command in
the bash.

What can i do to get a more understanding shell?

[xeon@localhost /]$ ls
^[[0m^[[01;34mbin^[[0m/   ^[[01;34mdev^[[0m/  ^[[01;34mhome^[[0m/ 
^[[01;34mlost+found^[[0m/  ^[[01;34mmisc^[[0m/  ^[[01;34mnet^[[0m/  ^[[01;34mproc^[[0m/
 ^[[01;34msbin^[[0m/     ^[[01;34msrv^[[0m/  ^[[01;34mtmp^[[0m/  ^[[01;34mvar^[[0m/
^[[01;34mboot^[[0m/  ^[[01;34metc^[[0m/  ^[[01;34mlib^[[0m/   ^[[01;34mmedia^[[0m/      
^[[01;34mmnt^[[0m/   ^[[01;34mopt^[[0m/  ^[[01;34mroot^[[0m/  ^[[01;34mselinux^[[0m/ 
^[[01;34msys^[[0m/  ^[[01;34musr^[[0m/
^[[m[xeon@localhost /]$


Thanks,
Pedro

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: weird shell in emacs
  2006-03-08 23:38 weird shell in emacs op132650c
@ 2006-03-09 10:14 ` Peter Dyballa
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Dyballa @ 2006-03-09 10:14 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 09.03.2006 um 00:38 schrieb op132650c@mail.telepac.pt:

> What can i do to get a more understanding shell?
>
> [xeon@localhost /]$ ls
> ^[[0m^[[01;34mbin^[[0m/   ^[[01;34mdev^[[0m/  ^[[01;34mhome^[[0m/
> ^[

As you see ls puts ANSI Esc sequences around the entries. If you look  
closer they are colouring the entries. You have approximately four  
ways to correct it:

	1.) use an ls alias in Emacs' shell that does no colouring (man ls,  
man <shell's name>) in your shell's rc file or in Emacs shell's rc  
file, i.e. .emacs_<shell name>
	2.) set either in your shell's rc file or in Emacs shell's rc file,  
i.e. .emacs_<shell name> an environment variable that switches off  
the colouring (for example 'unsetenv CLICOLOR' for (t)csh like shells)
	3.) set in .emacs something like (it seems to depend on some minimal  
Emacs version, 21.4?):

		(add-hook 'shell-mode-hook (lambda ()
		       (ansi-color-for-comint-mode-on)))

	4.) use term instead of shell

--
Greetings

   Pete

Time is an illusion. Lunchtime, doubly so.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-09 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 23:38 weird shell in emacs op132650c
2006-03-09 10:14 ` Peter Dyballa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).