Re: Emacs and shell display
> On Wednesday, February 19, 2003 12:30, fbrian@nac.net wrote:
>> When I run a shell in emacs <M> shell
>>
>> I get this garbled output...
>>
>> [mbfurry@EULER:~$ lss
>
> If this only occurred for ls, I'd suggest telling us what "lss" is an
> alias for, however control characters (as shown by the box character)
> are even appearing in your prompt.
lss was a typo in my part.
> The control characters look like they're trying to color the prompt and
> file names. This sort of colorization only works in some extended
> terminals such as xterm-color and rxvt.
My .profile uses colorized options.
> Highly likely:
> Perhaps your prompt or shell is configured incorrectly to use color.
> Have a look at the values of $PS1 and $PROMPT_COMMAND.
contents of my .profile pertaining...
# If running interactively, then:
if [ "$PS1" ]; then
# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
# enable color support of ls and also add handy aliases
eval `dircolors -b`
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
# some more ls aliases
alias l='ls'
alias ll='ls -al'
#alias l='ls -CF'
# set a fancy prompt
PS1='\u@\h:\w\$ '
# If this is an xterm set the title to user@host:dir
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc).
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi
fi
> Somewhat likely:
> Perhaps your terminal type is set incorrectly.
> Have a look at the value of $TERM.
output of $env regarding $TERM
TERM=xterm
> Less likely:
> Perhaps your locale or language settings are causing problems.
> Have a look at the value of $LOCALE and $LANG.
>
> Also:
> If you are using "ls --color", you should use "ls --color=auto" rather
> than "ls --color=always".
Done see above from contents of .profile
> Hope this helps
>
> --
> Michael Wardle
> Adacel Technologies
>
So I guess to use emacs shell capabiliteis I should not use colorized
commands???
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
Reply to: