I use tcsh, and xemacs, and consequently use tcsh in emacs under shell-mode.
I also have a nice line in my .tcshrc file to make the prompt pretty, ie:
Code:
set prompt="[${rgb_usr}%n@%m ${rgb_std}%c${rgb_restore}]${rgb_std} %#${rgb_restore} "
where rgb_* variables are different colors.
Unfortunately, emacs shell-mode doesn't recognize the colors, giving me an emacs prompt that looks like:
Code:
[^ [[00;37m<username>@<hostname> ^ [[00;35m~^ [[00m]^ [[00;35m >^ [[00m
where I've inserted a space between the ^ and [ to make html happy. I'm not sure what I really want to do... if I could get shell-mode to interpret the tcsh prompt variable correctly and display the colors like in my standard xterm, I'd be happiest. If that doesn't work, I guess I'd rather have two prompt variables- one used by tcsh in an xterm, the other by emacs. Is there a good way to fix this? Not really sure what the "right" thing to do is....
thanks much!