Right Arrow key Doesn't work in PROMPT FOR CHAR cmd
Posted in 1994
Topics: Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL
Can someone please tell me how to get the right arrow key to work in the below code sample. I need to get this code to work in a window. The Up, Down, and Left arrow keys and F-keys function properly but when the Right arrow key is pressed the cursor moves one character to the right and doesn't pass any key to the PROMPT statement. I have tried this on the console and rlogin sessions with the same results, and the arrow keys work fine in the r4gl application and *.4ge compiled executables. Thanks Muchly, - Brian G. This is on [ri]4gl Version 4.10.UD1 running on a 3B2/600GR under SVR4 UNIX. ============================================================================ #---prompt.4gl----- DEFINE ch CHAR(1) MAIN OPEN WINDOW win AT 3,3 WITH 20 ROWS, 70 COLUMNS ATTRIBUTE (BORDER) CURRENT WINDOW IS win WHILE 1 PROMPT "Press a key" FOR CHAR ch ON KEY (F1) DISPLAY "F1" ON KEY (F2) DISPLAY "F2" ON KEY (F3) DISPLAY "F3" ON KEY (F4) DISPLAY "F4" ON KEY (F5) DISPLAY "F5" ON KEY (F6) DISPLAY "F6" ON KEY (LEFT) DISPLAY "LEFT" ON KEY (RIGHT) DISPLAY "RIGHT" ON KEY (UP) DISPLAY "UP" ON KEY (DOWN) DISPLAY "DOWN" END PROMPT END WHILE END MAIN #----End of Code--------