#1
SECTION 7: PROGRAMMING THE CONTROL
"Include" File- ELTERM24.INC
Define statements allow the programmer to substitute keywords in place of
ELTERM 24 escape codes. These define statements, listed below, have been
provided in the "Include" file named ELTERM24.INC on the 3.5" disk supplied
with the unit . To use the Include file perform the following steps:
Using Windows
®
Explorer drag the ELTERM24.INC file to the MCPI or MCPI-
MA directory, as applicable, depending on which control is being used.
The first line of your task must be: #INCLUDE C:/MCPI/ELTERM24.INC
(Replace MCPI with MCPI-MA if applicable)
Define Statements
The following define statements MUST be included in your program if the
include file, ELTERM24.INC is not used/available, in order for Expanded
SEBASIC commands to compile.
#DEFINE CURSOR_ON
PRINT#COM,CHR$ (27)+"e";
#DEFINE CURSOR_OFF
PRINT#COM,CHR$ (27)+"f";
#DEFINE CLRSCRN
PRINT#COM,CHR$ (27)+"E";
#DEFINE CLRLINE @1 LC @1 " ";
#DEFINE LOCATE @1,@2
PRINT#COM,CHR$ (27)+"Y"+CHR$
(31+@1)+CHR$(@2+31);
#DEFINE DISP @1,@2,@3
LOCATE @1,@2,@3;
#DEFINE FLUSH_RX_BUFFER DO : KEYPRESS=INCHAR(COM)
: LOOP UNTIL KEYPRESS=0
#DEFINE LC @1
PRINT#COM,CHR$ (27)+"Y"+CHR$
(31+@1)+CHR$(32);
Note: In the CLRLINE define statement there are 20 spaces between the
quotes corresponding to the display width of 20 characters.
StockCheck.com