*BSD News Article 14125


Return to BSD News archive

Xref: sserve comp.unix.amiga:4279 comp.unix.questions:32921 comp.unix.bsd:11766 comp.unix.misc:6943 comp.sys.amiga.datacomm:11692 comp.sys.amiga.misc:28717
Newsgroups: comp.unix.amiga,comp.unix.questions,comp.unix.bsd,comp.unix.misc,comp.sys.amiga.datacomm,comp.sys.amiga.misc
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!uunet!ftpbox!mothost!white!rtsg.mot.com!king
From: king@rtsg.mot.com (Steven King, Software Archaeologist)
Subject: Re: Esc sequences in prompts (why doesn't it work)
Message-ID: <1993Apr6.181230.16283@rtsg.mot.com>
Sender: news@rtsg.mot.com
Nntp-Posting-Host: orchid3
Reply-To: king@rtsg.mot.com
Organization: Motorola Inc., Cellular Infrastructure Group
References: <SIGNALS.93Apr5112617@krypton.Mankato.MSUS.EDU> <1993Apr5.170600.24477@mnemosyne.cs.du.edu> <GOWEN.93Apr5161117@jade.tufts.edu>
Date: Tue, 6 Apr 1993 18:12:30 GMT
Lines: 18

gowen@jade.tufts.edu (G. Lee Owen) publicly declared:
>I have a tcsh prompt that is underlined.  I do it by cat'ing files
>containing the sequences.  So, you use emacs to quote into a file,
>say, ^[[4m (or, escape-[-4-m) and then ^[[0m (or, escape-[-4-m). 
>There may be an easier way to do it, but I inherited it from a friend
>and never mucked with it much.

An easier way?  Yeah, you might say that...  Put the %U and %u
(underline on and off) tokens in your prompt.  That'll just about do it
for you, and be portable when you change to a non-VT100 terminal.

When all else fails, 'man tcsh'...

-- 
-------------------------------------------------------+-----------------------
Nothing is more conducive to peace of mind than not    |      Steven King
having any opinions at all.                            |   Motorola Cellular
            (Georg Christoph Lichtenberg [1742-1799])  |   king@rtsg.mot.com