Date: Thu, 05 May 2011 16:14:15 +0000 From: pwnedomina <pwnedomina@gmail.com> To: Polytropon <freebsd@edvax.de> Cc: questions@freebsd.org Subject: Re: rox-fm Message-ID: <4DC2CCD7.3080406@gmail.com> In-Reply-To: <20110505143748.4be94f6f.freebsd@edvax.de> References: <4DC1BEA8.6030108@gmail.com> <20110504224931.9ffd5682.dcdowse@gmx.net> <4DC1E23E.3020001@gmail.com> <20110505014556.50dcea0e.dcdowse@gmx.net> <BANLkTi=Csvs%2B3C7-XJGUDn43Jzf-JNZZ4g@mail.gmail.com> <4DC27128.8040508@gmail.com> <20110505143748.4be94f6f.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Em 05-05-2011 12:37, Polytropon escreveu: > On Thu, 05 May 2011 09:43:04 +0000, pwnedomina<pwnedomina@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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DC2CCD7.3080406>