I have some users in the plant running WindX within a character base in Linux.
I have a request that a user wants to load the edit keys (Del, End, PgDwn, Up Arrow, left Arrow)
with prompts to short cut their manual entry. I had no issues on the setup of F1-F12 keys.
using the 'FL' command, but having no luck using the 'EL' command. ProvideX Ver17
this is their request for keys:
UP ARROW A + return
LEFT ARROW N + return
PAGE DOWN END + return
END ? + return
DELETE Y + return
Not sure what I am doing wrong? This is what I have
for loading the DELETE key
PRINT 'EL',"2",CHR(9),$02$,"Y"+$0D$
The CHR(9) is the key id
$02$ is the length in hex of the character string
that will load the editing key with
Y is the text that will be transmitted when the
editing key is pressed along with a RETURN that is added
No error when command is executed, but get nothing when DELETE key is pressed either ??
This is what I have for the id of the keys:
00 Left Arrow / Key Number
01 Right Arrow / Key Number
02 Up Arrow / Key number
03 Down Arrow / Key number
05 End / Key number
06 Page Up / Key number
07 Page Down / Key number
08 Insert / Key number
09 Delete / Key number
Hi Skip,
Does the following work for you?
begin
print 'EL',"2",chr(9),$02$,"Y"+$0D$,
input "Do you wish to continue?: <Del>='Y': ",answer$
print "You entered ",answer$
I tried this on PxPlus 17.10 Windows and it seems to work correctly.
Regards,
Rob Leighton
Riverwood Enterprises Inc.
Skip
When I ran the following program using WindX against a Linux or Windows server it worked here:
0010 PRINT 'EL',"2",CHR(9),$02$,"Y"+$0D$, ! Delete key ("Y"
0020 PRINT 'EL',"2",CHR(2),$02$,"A"+$0D$, ! Up arrow ("A")
0030 PRINT 'EL',"2",CHR(0),$02$,"N"+$0D$, ! Left arrow ("N")
0040 WHILE 1
0050 INPUT X$
0060 IF CTL<>0 THEN BREAK ! Press F4 to exit
0070 PRINT "You entered:",X$
0080 WEND
It handled the Delete, Up, and Left arrow as per your email.
Rob/Mike - thanks for the help what you both have does work. I some how got side tracked days
ago when last setting up the users F9 to F12 keys which those will print their values at a command prompt.
It didn't click until I saw the examples that the edit keys will not show their 'EL' value unless your
running a program and I was attempting the keys verification at a command prompt thinking that
they were not working.
Thanks Again !!
You are correct, the edit key mapping is disabled at command mode in order to make it easier to edit programs/lines of code.