LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-08-2005, 10:28 PM   #1
CoonerTheRed
LQ Newbie
 
Registered: Mar 2004
Location: da Big Apple
Distribution: FC3
Posts: 20

Rep: Reputation: 0
emacs shell-mode doesn't interpret prompt variable


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!
 
Old 05-09-2005, 04:23 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
* slackie1000 uses vim *

hi there,

a solution to your problem is switching to ansi-term
Code:
ansi-term
this mode will interpret your tcsh prompt if you want.
imho, the shell mode in emacs is quite unstable. did you try "man" in shell-mode in emacs?
but i suggest as terminal solution to use in emacs the builtin emacs shell
Code:
eshell
i think it is quite okay with some necessary features.

regards

slackie1000
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Emacs: sgml mode lackluster Programming 4 04-23-2006 08:50 PM
Shell mode & ssh in emacs phuna Linux - Software 1 08-03-2005 04:37 PM
emacs problem in shell mode bujecas Slackware 1 10-25-2004 04:37 AM
emacs-21.2 php-mode.el howto ? cicisbeo Linux - Software 1 01-12-2004 08:26 PM
Disabling cc-mode Emacs amannuc Linux - Software 0 10-21-2003 12:52 AM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration