tcsh question

Paul Close pdc at lunch.wpd.sgi.com
Thu May 23 05:39:55 AEST 1991


brad at 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 %{<escape stuff>%}.
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 at sgi.com	   ...!{ames, decwrl, uunet}!sgi!pdc

    Oh, no!  You walked into the slavering fangs of a lurking grue.



More information about the Comp.sys.sgi mailing list