Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 125
Chapter 2 Program Instructions
INKEY$
Field of Application
Function reading the rst character in the receive buffer of the
standard IN channel.
Syntax INKEY$
Remarks
For information on standard I/O channels, see SETSTDIO statement. By
default, "uart1:" is the standard I/O channel.
As opposed to the INPUT statement, INKEY$ does not interrupt the program
ow to wait for input data, unless a loop is created by means of a GOTO
statement, see line 20 in the example below.
INKEY$ is useful when the host computer is unable to end the input
data with a Carriage Return (CR; ASCII 13 dec.), but must use some
other character, for example End of Text" (ETX; ASCII 3 dec.). Then
a routine, which interprets the substitute character as a carriage return,
can be created.
Example
In this example, none of the characters received on the standard IN
channel will be printed on the host screen until a # character (ASCII
35 decimal) is encountered.
10 A$ = INKEY$
20 IF A$ = "" GOTO 10
30 IF A$ = CHR$(35) THEN PRINT B$
40 IF A$ = CHR$(35) THEN END
50 B$ = B$ + A$
60 GOTO 10
RUN
Type a number of characters on the keyboard of the host. They will not be
printed on the host screen until you type a # character. Then all the characters
will appear simultaneously, except for the #-sign.
Note the loop between line 10 and 20, which makes the program wait
for you to activate a key.