* M-x shell and escape sequences
@ 2006-12-27 2:03 reader
2006-12-27 8:31 ` Eli Zaretskii
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: reader @ 2006-12-27 2:03 UTC (permalink / raw)
Setup:
Gentoo linux 2.6.18
GNU Emacs 22.0.92.1 (i686-pc-linux-gnu, X toolkit) of 2006-12-21
Using M-x eshell `ls' behaves as ecpected and displays the colors.
Should I be able to run M-x shell (not eshell) then `ls' and not see
escape sequences?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: M-x shell and escape sequences
2006-12-27 2:03 reader
@ 2006-12-27 8:31 ` Eli Zaretskii
2006-12-27 9:55 ` Matthew Flaschen
2006-12-27 10:16 ` Michaël Cadilhac
2 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2006-12-27 8:31 UTC (permalink / raw)
> From: reader@newsguy.com
> Date: Tue, 26 Dec 2006 20:03:29 -0600
>
> Using M-x eshell `ls' behaves as ecpected and displays the colors.
It's a different `ls', the one built into Eshell (at least by default,
unless you changed some options).
> Should I be able to run M-x shell (not eshell) then `ls' and not see
> escape sequences?
Yes, but it's your setup: make sure `ls' is invoked with --colors=auto
option, not with --colors=always.
Alternatively, use ansi-colors.el.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: M-x shell and escape sequences
2006-12-27 2:03 reader
2006-12-27 8:31 ` Eli Zaretskii
@ 2006-12-27 9:55 ` Matthew Flaschen
2007-04-10 6:05 ` Alexey Pustyntsev
2006-12-27 10:16 ` Michaël Cadilhac
2 siblings, 1 reply; 10+ messages in thread
From: Matthew Flaschen @ 2006-12-27 9:55 UTC (permalink / raw)
[-- Attachment #1.1: Type: text/plain, Size: 303 bytes --]
reader@newsguy.com wrote:
> Should I be able to run M-x shell (not eshell) then `ls' and not see
> escape sequences?
>
On a related note, how do I get the clear command to work? In eshell,
it shows escape sequences and does nothing; in shell, it just does nothing.
Thanks,
Matt Flaschen
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: M-x shell and escape sequences
2006-12-27 9:55 ` Matthew Flaschen
@ 2007-04-10 6:05 ` Alexey Pustyntsev
2007-04-10 8:57 ` Peter Dyballa
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Alexey Pustyntsev @ 2007-04-10 6:05 UTC (permalink / raw)
To: help-gnu-emacs
Matthew Flaschen <matthew.flaschen@gatech.edu> writes:
> reader@newsguy.com wrote:
>> Should I be able to run M-x shell (not eshell) then `ls' and not see
>> escape sequences?
>>
> On a related note, how do I get the clear command to work? In eshell,
> it shows escape sequences and does nothing; in shell, it just does nothing.
>
> Thanks,
>
> Matt Flaschen
Hi all!
My question is different but I think it fits this thread nicely.
The trouble I've run into is that typing M-x shell results in
something like this:
....
-rw-r--r-- 1 woof users 733 Mar 31 23:37 ^[[0marticle-1.xsl^[[0m
-rw-r--r-- 1 woof users 2254 Apr 1 03:03 ^[[0marticle-2.html^[[0m
-rw-r--r-- 1 woof users 1897 Apr 1 03:02 ^[[0marticle-2.xsl^[[0m
-rw-r--r-- 1 woof users 1895 Apr 1 03:01 ^[[0marticle-2.xsl~^[[0m
....
I have not touched anything, that's how my emacs-22.0.95 executes the
command by default.
I've looked through nodes 41.3 - 41.8 of the info (Shell Mode) but
nothing seems to deal with the problem.
Do you think that display is normal or should I change anything?
I would be pleased to hear your comments.
--
Rgds
Alexey
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: M-x shell and escape sequences
2007-04-10 6:05 ` Alexey Pustyntsev
@ 2007-04-10 8:57 ` Peter Dyballa
2007-04-10 9:12 ` Alexey Pustyntsev
[not found] ` <mailman.1900.1176195872.7795.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2007-04-10 8:57 UTC (permalink / raw)
To: Alexey Pustyntsev; +Cc: help-gnu-emacs
Am 10.04.2007 um 08:05 schrieb Alexey Pustyntsev:
> Do you think that display is normal or should I change anything?
The display is normal outside GNU Emacs – it is colouring file,
directory, sym-link, and other special files' names. Turn that off in
GNU Emacs (a file ~/.emacs_<your shell's name> could do this in that
shell's syntax), or make ls to be aliased to a form that does emit
these ANSI escape sequences.
--
Greetings
Pete
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is winning."
-- Rich Cook
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: M-x shell and escape sequences
2007-04-10 6:05 ` Alexey Pustyntsev
2007-04-10 8:57 ` Peter Dyballa
@ 2007-04-10 9:12 ` Alexey Pustyntsev
[not found] ` <mailman.1900.1176195872.7795.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 10+ messages in thread
From: Alexey Pustyntsev @ 2007-04-10 9:12 UTC (permalink / raw)
To: help-gnu-emacs
I forgot to specify that my post was about the output of
'M-x shell' and 'ls -l'.
I think that was clear, though.
--
Rgds
Alexey
^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <mailman.1900.1176195872.7795.help-gnu-emacs@gnu.org>]
* Re: M-x shell and escape sequences
[not found] ` <mailman.1900.1176195872.7795.help-gnu-emacs@gnu.org>
@ 2007-04-10 10:57 ` Alexander Zhukov
2007-04-10 12:43 ` Alexey Pustyntsev
0 siblings, 1 reply; 10+ messages in thread
From: Alexander Zhukov @ 2007-04-10 10:57 UTC (permalink / raw)
To: help-gnu-emacs
>>>>> Peter Dyballa (PD) writes:
PD> Am 10.04.2007 um 08:05 schrieb Alexey Pustyntsev:
>> Do you think that display is normal or should I change anything?
PD> The display is normal outside GNU Emacs – it is colouring file,
PD> directory, sym-link, and other special files' names. Turn that off
PD> in GNU Emacs (a file ~/.emacs_<your shell's name> could do this in
PD> that shell's syntax), or make ls to be aliased to a form that does
PD> emit these ANSI escape sequences.
Or you can try to use ansi-color-for-comint-mode. I have these two lines
in my .emacs:
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
--
Alexander Zhukov
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: M-x shell and escape sequences
2007-04-10 10:57 ` Alexander Zhukov
@ 2007-04-10 12:43 ` Alexey Pustyntsev
0 siblings, 0 replies; 10+ messages in thread
From: Alexey Pustyntsev @ 2007-04-10 12:43 UTC (permalink / raw)
To: help-gnu-emacs
Alexander Zhukov <zuav@yandex.ru> writes:
>>>>>> Peter Dyballa (PD) writes:
>
> PD> Am 10.04.2007 um 08:05 schrieb Alexey Pustyntsev:
>
> >> Do you think that display is normal or should I change anything?
>
> PD> The display is normal outside GNU Emacs – it is colouring file,
> PD> directory, sym-link, and other special files' names. Turn that off
> PD> in GNU Emacs (a file ~/.emacs_<your shell's name> could do this in
> PD> that shell's syntax), or make ls to be aliased to a form that does
> PD> emit these ANSI escape sequences.
>
> Or you can try to use ansi-color-for-comint-mode. I have these two lines
> in my .emacs:
>
> (autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
> (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
>
> --
> Alexander Zhukov
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
Thanks a lot, guys!
I put those two lines into my .emacs and the problem was solved.
--
Rgds
Alexey
Today is Setting Orange, the 27th day of Discord in the YOLD 3173
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: M-x shell and escape sequences
2006-12-27 2:03 reader
2006-12-27 8:31 ` Eli Zaretskii
2006-12-27 9:55 ` Matthew Flaschen
@ 2006-12-27 10:16 ` Michaël Cadilhac
2 siblings, 0 replies; 10+ messages in thread
From: Michaël Cadilhac @ 2006-12-27 10:16 UTC (permalink / raw)
Cc: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 712 bytes --]
reader@newsguy.com writes:
> Setup:
> Gentoo linux 2.6.18
> GNU Emacs 22.0.92.1 (i686-pc-linux-gnu, X toolkit) of 2006-12-21
>
> Using M-x eshell `ls' behaves as ecpected and displays the colors.
>
> Should I be able to run M-x shell (not eshell) then `ls' and not see
> escape sequences?
You may want to use M-x ansi-term RET
(Mind the change in keybindings!)
--
| Michaël `Micha' Cadilhac | Un certain Blaise Pascal |
| Epita/LRDE Promo 2007 | etc... etc... |
| http://michael.cadilhac.name | -- Prévert (Les paris stupides) |
`--JID: michael.cadilhac@gmail.com--' - --'
[-- Attachment #1.2: Type: application/pgp-signature, Size: 188 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-04-10 12:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.2387.1167185031.2155.help-gnu-emacs@gnu.org>
2006-12-29 14:17 ` M-x shell and escape sequences kruhft
2006-12-27 2:03 reader
2006-12-27 8:31 ` Eli Zaretskii
2006-12-27 9:55 ` Matthew Flaschen
2007-04-10 6:05 ` Alexey Pustyntsev
2007-04-10 8:57 ` Peter Dyballa
2007-04-10 9:12 ` Alexey Pustyntsev
[not found] ` <mailman.1900.1176195872.7795.help-gnu-emacs@gnu.org>
2007-04-10 10:57 ` Alexander Zhukov
2007-04-10 12:43 ` Alexey Pustyntsev
2006-12-27 10:16 ` Michaël Cadilhac
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).