LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2004, 04:29 AM   #1
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Rep: Reputation: 30
tcsh prompt with colors


Hi,

is it possible to use colors when designing the xterm prompt ??
Right now I have the following which does make it standout:

set prompt = '%S%U%n%s@%m%u:%B%c03%#%b'
set rprompt = '{%h}[%T]'
set prompt2 = '%B%R?%b'
set prompt3 = '%BCORRECT>%R (y|n|e|a)?%b'

Last edited by TroelsSmit; 12-20-2004 at 04:31 AM.
 
Old 12-20-2004, 04:54 AM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
try this :

Code:
 set prompt = "%{\033[32m%}${USER}%{\033[0m%}@%m %{\033[35m%}(%~)%{\033[0m%} > "
 
Old 12-20-2004, 07:55 AM   #3
TroelsSmit
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Debian / Suse
Posts: 223

Original Poster
Rep: Reputation: 30
excellent :-)

A very Merry Christmas to mrcheeks !!
 
  


Reply



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
changing prompt colors? microsoft/linux Debian 2 05-29-2005 04:22 PM
changing text colors in tcsh shell leontini Linux - General 1 08-17-2004 02:53 AM
How to set tcsh prompt: # for root and % for user? robson Linux - Newbie 1 10-12-2003 03:13 PM
bash prompt colors emetib Linux - Software 3 06-14-2003 05:35 PM
tcsh colors - help!!!! ultimator Linux - General 0 03-10-2003 01:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration