Kbase P9495: Is it possible, on UNIX, to get input from the keyboard and a serial device (such as a barcode reade
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
Is it possible, on UNIX, to get input from the keyboard and a serial device (such as a barcode reader) at the same time
FACT(s) (Environment):
UNIX
FIX:
Not directly from the 4GL.
In order to read input from a serial port, you usually write something like the following:
INPUT FROM <device> NO-ECHO.
readLoop:
REPEAT:
READKEY.
... process input ...
END.
INPUT CLOSE.
READKEY is a modal instruction, and while Progress is waiting on the READKEY instruction, input from the keyboard cannot be processed.