*BSD News Article 14176


Return to BSD News archive

Xref: sserve comp.unix.amiga:4282 comp.unix.questions:32957 comp.unix.bsd:11772 comp.unix.misc:6952 comp.sys.amiga.datacomm:11710 comp.sys.amiga.misc:28757
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!haven.umd.edu!darwin.sura.net!dtix.dt.navy.mil!mimsy!dabe
From: dabe@cs.umd.edu (Dabe "Dabe" Murphy)
Newsgroups: comp.unix.amiga,comp.unix.questions,comp.unix.bsd,comp.unix.misc,comp.sys.amiga.datacomm,comp.sys.amiga.misc
Subject: Re: Esc sequences in prompts (why doesn't it work)
Message-ID: <66130@mimsy.umd.edu>
Date: 7 Apr 93 19:23:24 GMT
References: <SIGNALS.93Apr5112617@krypton.Mankato.MSUS.EDU> <1993Apr5.170600.24477@mnemosyne.cs.du.edu> <1993Apr6.082459.6558@ericsson.se>
Sender: news@mimsy.umd.edu
Followup-To: comp.unix.amiga
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 18

If your problem can't be solved by using the $U...$u trick, etc. you may
want to try %{^[...} (Making sure the ^[ is a real escape character, not
just a ^ followed by a [) This is sort of the equivalent of single quotes,
tcsh-style.  From the manpage:

           %{..%}      Include string as a literal escape sequence.
                       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.)

						Dabe
-- 
dabe@cs.umd.edu   Try here first   |    "Let's Stand Him On His Head...
dabe@eng.umd.edu  Try here second  |     He's No Fun He Fell Right Over"
dabe@wam.umd.edu  Forwarded to eng |             - The Firesign Theatre