help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell output


From: Spencer Thiel
Subject: Re: shell output
Date: Fri, 26 Jan 2001 10:53:55 -0800

You need to create a file called .emacs_bash or .emacs_sh (depending on what the shell name is) and overwrite the PS1 variable. There are other ways to do this, but this is the method I prefer. Here's my .emacs_bash file for an example:

case "$EMACS" in
t) export TERM=gnuemacs
export PS1="\$ "
export PS2="> "
unalias ls
unalias ll
alias ll="ls -Fl"
alias lc="ls -F"
alias grep="grep -i"
esac



At 10:17 AM 1/26/2001, you wrote:
I have the following problem in the shell mode

ESC x shell

lt28:[test]> ls
[0m[01;32ma.out[0m* [0mmain.cc[0m [0mmain.cc~[0m [0mmain.int.c[0m [0mmain.s[0m [0mmain.s.nopt[0m
[mlt28:[test]>

i.e. [0m are pre/post fixed to the expected output. I 'm using GNU Emacs 20.7.1 on a linux
(RedHat 6.2) system. My .emacs file looks like


(setq explicit-shell-file-name "/bin/bash")
(standard-display-european 1)
(iso-accents-mode 1)
(set-input-mode (car (current-input-mode)) (nth 1 (current-input-mode)) 0)
(global-font-lock-mode t)
(setq-default font-lock-auto-fontify t)
(setq-default font-lock-use-colors t)
(setq-default mouse-yank-at-point t)
(setq-default case-fold-search nil)
(setq auto-mode-alist (append '(("\\.i\\'" . c-mode)) auto-mode-alist))
(custom-set-variables
 '(compilation-scroll-output t))
(custom-set-faces)

any idea how to fix the problem ?

best regards,
Nicola Botta


--
Nicola Botta, Data & Computation
Potsdam Institute for Climate Impact Research (PIK)
Telegrafenberg C4, Postfach 60 12 03, D-14412 Potsdam
tel: ++49 (0)331 288 2657 <mailto:botta@pik-potsdam.de>mailto:botta@pik-potsdam.de


- st.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]