HP3000-L Archives

July 2001, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Patrick Santucci <[log in to unmask]>
Reply To:
Patrick Santucci <[log in to unmask]>
Date:
Wed, 11 Jul 2001 14:54:10 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
I prefer ![chr(27)] to ![chr(%33)] -- one less character to type. :-) Also,
more people know that ASCII character 27 is 'escape' than know the octal
code. Heck, even $1B would more likely be recognizable to my PC-savvy
friends as 1B(hex).

To do this in QUAD, just enter:

/ch "<esc>""![chr(27)]" a s

where <esc> is the escape key -- you won't see it displayed, nor the
following quotation mark, it will *look* like you entered:

/ch ""![chr(27)]" a s

but it will actually change out all occurrences of <escape>. If you want to
see the escape character, you can turn on Display Functions before you type
in the command, as has already been suggested.

* Caveat: Ecometry (at least the version of MACS we're on) does some
strange, exasperating things using escape sequences in UDCs. For example,
one called CLEARIT says only:

CLEARIT
COMMENT <esc>X<esc>H<esc>J<esc>&jB
***

This UDC is apparently used by *programs* which call HPCICOMMAND and do a
"HELP CLEARIT" to clear the screen and display the user function keys. I
discovered this when I tried changing it to use ECHO instead of COMMENT
(there were a couple UDCs which did a HELP CLEARIT which I changed to
execute CLEARIT instead) and the CHR form described above, only to have it
break everything. The moral: be sure you know what will be affected before
changing anything.

Patrick
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Patrick Santucci
HPe3000 Systems Administrator
Cornerstone Brands, Inc.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2