rox-fm

pwnedomina pwnedomina at gmail.com
Thu May 5 15:13:42 UTC 2011


Em 05-05-2011 12:37, Polytropon escreveu:
> On Thu, 05 May 2011 09:43:04 +0000, pwnedomina<pwnedomina at gmail.com>  wrote:
>> ok, ive choosen "reply to all". my question now is
>> i have setted the command prompt to
>> "|[%n@%m:%c]%#"
>> but i intend to place color red in the [] brackets, how can i accomplish
>> this?|
> It looks like you are configuring a C shell prompt, correct?
> Make sure you have the following settings in ~/.cshrc (or in
> /ect/csh.cshrc, if you want a global setting):
>
> 	set promptchars = "%#"
> 	set prompt = "%n@%m:%~%# "
>
> This would give you the STANDARD prompt - note the space after
> the prompt character and the absense of the brackets.
>
> You want red color - I'm not sure if this is supported in csh.
> At least I know that bold printing is possible. Have a look
> at this:
>
> 	set prompt = "[%B%n@%m:%~%b]%# "
>
> This uses %B and %b to switch on and off bold printing. Refer
> to "man csh", section "Special shell variables" and scroll
> down to "prompt" - there are some more special settings to
> customize the prompt. It mentions "%{string%}" for escape
> sequences and can MAYBE be used for changing color.
>
> Is the pipe character at the beginning of the prompt intended?
> If yes, use this:
>
> 	set prompt = "|[%B%n@%m:%~%b]%# "
>
> I've kept the space at the end of the prompt for better
> readability. Remove it if desired.
>
>
>
according to this page http://understudy.net/custom.html C shell support 
colors, how can i turn this prompt

set prompt = "[%B%n@%m:%~%b]%# "

with red color on brackets and white color on text?


More information about the freebsd-questions mailing list