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

U2 fram PrsExe50



I'm interested in using the ENTER key to execute both native Xy4 commands
and U2 frames. I see that PrsExe50 is somewhat along these lines. But it
seems to require:

1. beginning the U2 frame calls with a period--e.g.:
.lh
to do loadhigh.

2. Having stored something in SG 50.

I'm assigning to ENTER, in the keyboard file, a call to this new frame:

{{5ENTER}}
==0>BX es 1Q2 XC>JM 2.PrsCMlineQ2 
--where is the little musical note for a textual carriage-return line-feed.
It seems to work nicely, with one anomaly: on a blank command line, hitting
the ENTER key calls the U2 help file and tries to fetch ENTER. I can live
with that.
Adding a "BX es 0Q2" after the first  doesn't seem to make any
difference. I guess exiting the frame does that automatically, as does
exiting a program (in Xy4)?
A further tweak I'd like is for 5ENTER, when it fails to find either a
native command or a U2 frame, to call my Change Directory frame. That frame
takes certain command line arguments to change directories without my
having to enter anything on the command line other than an abbreviation for
the directory. E.g., with just the letter R on my command line, hitting the
key now assigned to that frame changes to the Root directory--i.e., does
"CD \". But that requires using a key different from ENTER to call my
frame. To use the new 5ENTER frame to do that, I'd have to test whether or
not U2 has failed to otherwise execute, and I don't know how to do that.
Testing with  didn't work.

Thanks for any help. I hope this has been clear.



Harry Binswanger
hb@xxxxxxxx