[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help with M-x term
From: |
Sergei |
Subject: |
Re: help with M-x term |
Date: |
18 Jul 2006 00:01:31 -0700 |
User-agent: |
G2/0.2 |
Tim X wrote:
[...]
> Yes, I've seen solutions of this style before. Its certainly one
> solution. In fact, under Debian, the default .bashrc has
> # enable color support of ls and also add handy aliases
> if [ "$TERM" != "dumb" ]; then
> eval `dircolors -b`
> alias ls='ls --color=auto'
> alias dir='ls --color=auto --format=vertical'
> alias vdir='ls --color=auto --format=longx
> fi
> Which means ls colours are not used within M-x shell as it sets TERM
> to dumb. This approach is I think more general in that it will
> prevent ls colours from being used in any dumb terminal, not just
> emacs' shell.
Maybe that's true. But actually there are more colored thing than the
directories.
So far I was unable to solve the color problem with the perl debugger
:(
> I also note you are using the variable $OSVAR to detect if running
> under Linux, but I don't think this is a "standard' variable
> (i.e. it is distribution/local/user specific). I only mention it in
> case someone uses your code snippet and is wondering why colour ls
> is not behaving as expected.
You are right, I set OSVAR myself on the basis of uname inquiry.
--
Sergei
Re: help with M-x term, Kevin Rodgers, 2006/07/13