Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!sgi!shinobu!fido.wpd.sgi.com!news From: pdc@lunch.wpd.sgi.com (Paul Close) Newsgroups: comp.sys.sgi Subject: Re: tcsh question Message-ID: <1991May22.193955.28393@fido.wpd.sgi.com> Date: 22 May 91 19:39:55 GMT References: <9105220715.AA22652@> Sender: news@fido.wpd.sgi.com (Usenet News Admin) Reply-To: pdc@sgi.com (Paul Close) Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 24 brad@lsr-vax.UUCP (Brad Zoltick - LMO) writes: > >Is there a way to insert ANSI escape sequences into the prompt >string? Under the C shell, you can customize your prompt by inserting >ANSI escape sequences. I have not been successful in getting any >escape sequences to work with the new prompt string within the TC shell. For tcsh 5.20.02 (and perhaps earlier), you can say %{%}. However, the following caveat (from the man page): Note that the enclosed escape sequence, should only be used to change terminal attributes and should not move the cursor location. Also, this cannot be the last character in the prompt string. (Available only if tcsh was compiled to be eight bit clean.) For most uses, you don't need this, since tcsh's extended prompt format allows you to do underlining, bolding, and standout modes in a portable fashion. -- Paul Close pdc@sgi.com ...!{ames, decwrl, uunet}!sgi!pdc Oh, no! You walked into the slavering fangs of a lurking grue.