[Date Prev][Date Next][Subject Prev][Subject Next][Date Index][Subject Index]

Re: Use ENTER instead of helpkey



Reply to note from Harry Binswanger  Sun, 27 Sep
2009 23:04:28 -0400

> I personalized it by taking out the setting and re-setting of
> WA, which i don't need, and included a way to launch HBCD, and
> I thought the test for outputting a cr-lf should be terminated
> right away, rather than having so long an IF EI as your code
> did.

The problem with "personalized" code is that other people may need
what you don't need. They may use XyWrite in ways that turn
purported efficiencies, such as shortened IF-EndIf statements, into
errors. With personal programming, it's caveat emptor in spades.

So HBCD is a directory shortcut thingie. I can understand your
wanting unrecognized commands to default to that operation, but I
don't think that modifying frame $X is the way to accomplish it. I'd
do it in a catchall frame {{5*}} located at the end of U2:

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5*}}[cr|lf]{002}{<}SX71,{<}VA$FR{>}{>}[JM_]2.hbcd[Q2_]{002
}[cr|lf][cr|lf]
-nd
XPLeNCODE

This should work with my frame $X out of the box, no mods necessary.
In HBCD, however, change )> to )>.
$X already puts the CMline in S/G 50; all you need to do in HBCD is
to uppercase 50. Same if you launch with , as in
HBCD [shortcut]. )> is an error.

--
Carl Distefano
cld@xxxxxxxx