Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!lll-lcc!ames!amdahl!nsc!woolsey From: woolsey@nsc.UUCP Newsgroups: net.sources Subject: Re: prompt wars Message-ID: <4188@nsc.nsc.com> Date: Thu, 9-Apr-87 12:54:29 EST Article-I.D.: nsc.4188 Posted: Thu Apr 9 12:54:29 1987 Date-Received: Sat, 11-Apr-87 11:55:28 EST References: <5961@dartvax.UUCP> Reply-To: woolsey@nsc.UUCP (Jeff Woolsey) Organization: National Semiconductor, Sunnyvale Lines: 14 Keywords: tacky, garish So, you want inverse video in a shell script, eh? Try this: # to underline the entire hostname is a bit of a challenge. # it works with the history number because when underlining is set # into the prompt, only one character is underlined. csh later converts # that to a number, and the start/end underline characters are intact echo "set prompt='`hostname` \_\!_:_ '" | ul >! /tmp/$$ source /tmp/$$ rm /tmp/$$ -- Jeff Woolsey ...!nsc!pubs!woolsey woolsey@nsc.COM woolsey@umn-cs.ARPA