Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!chi-news.cic.net!newsxfer2.itd.umich.edu!gatech!news.mathworks.com!fu-berlin.de!cs.tu-berlin.de!informatik.uni-bremen.de!nordwest.pop.de!uniol!uni-erlangen.de!news.tu-chemnitz.de!irz401!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Colour Prompts possible with tcsh? Date: 19 Feb 1996 00:20:03 GMT Organization: Private BSD site, Dresden Lines: 21 Message-ID: <4g8fnj$93e@uriah.heep.sax.de> References: <4g2tgi$lvn@preeda.internex.net.au> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.3 gibney@triad.apana.org.au (John Gibney) writes: > Using the cons25 terminal type, on the virtual terminals, > with the standard csh, I was able to embed escape sequences > in my prompt string (in .login, say) and I'd be able to get > colour prompts. ...but it doesn't seem to be possible to do > this when using tcsh. You need to enclose your escape sequences into %{ %} pairs. This way, tcsh passes them through literally, and doesn't account for the length of the enclosed portion when accounting for the line length. (I'm sending the current working directory via an escape sequence to the xterm title, and this used to work well for more than a year.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)