From: Tim X <timx@nospam.dev.null>
Subject: Re: eshell ls display
Date: Fri, 15 Dec 2006 09:52:35 +1100 [thread overview]
Message-ID: <873b7ihyz0.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: ulklc0ydz.fsf@gmail.com
Mathias Dahl <brakjoller@gmail.com> writes:
> Tim X <timx@nospam.dev.null> writes:
>
>> <bgm-rao@ieee.org> writes:
>>
>>> When I use ls within eshell, this is what I see.
>>> How do I get rid of the extra characters?
>>>
>>> ~ $ ls
>>> [00m[00m#.diary.cyclic-tasks#[00m
>>> [00m#.newsrc-dribble#[00m
>>> [00m#cts#[00m
>>> [00mBalanced Routing.xls[00m
>>>
>>>
>>
>> those look like ANSI color escape characters. There is an ansi-color
>> mode which will handle these appropriately. alternatively, you can
>> customize ls not do use colours. Try an apropos for ansi-color
>
> Hmm, it seems that eshell in this case does not use its internal ls,
> right? How can that happen? What happens if he tries "eshell/ls"
> instead of "ls"?
Good question. Its been many years since I had to deal with the issues
of ansi escape characters within emacs, either in a shell or with
output from colour enabled ls etc. Luckily, I now use Debian and
everything "just works".
I'm running emacs 22 and tried both ls, /bin/ls and eshell/ls - all of
which worked correctly for me. Given that I have redefined my colour
associations, it looks like /bin/ls uses the system ls, while ls and
eshell/ls are using the eshell versions (they don't obey my customized
colour settings).
So, I would say that either his system is using the system ls (not
sure what version of emacs or eshell he is running) or somehow his
terminal settings are screwed and don't handle ansi colour escape
codes (though I thought emacs 21 onwards default was to handle this).
Maybe the OP should try starting emacs -q to see if he gets the same
problem. If not, then its something in his .emacs that has screwed up
ansi colour support.
Tim
--
tcross (at) rapttech dot com dot au
next prev parent reply other threads:[~2006-12-14 22:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1812.1165975752.2155.help-gnu-emacs@gnu.org>
2006-12-13 6:56 ` eshell ls display Tim X
2006-12-13 12:32 ` Mathias Dahl
2006-12-14 22:52 ` Tim X [this message]
2006-12-15 4:53 ` bgm-rao
[not found] ` <mailman.1903.1166158477.2155.help-gnu-emacs@gnu.org>
2006-12-15 15:45 ` Mathias Dahl
2006-12-13 2:08 bgm-rao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873b7ihyz0.fsf@lion.rapttech.com.au \
--to=timx@nospam.dev.null \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.