Intrinsic-7 ChIn

Top  Previous  Next

7: variable:= ChIn(device);

 

This intrinsic reads in one byte from the specified input device. The byte is usually an ASCII character (hence: CHaracter IN), but it can be any 8-bit value. After the character is read in, ChIn is ready to read the next character. For example:

 

       X:= ChIn(0);                \Get byte from keyboard buffer