Are you guys aware of the universe supplied include:
ATFUNCTIONS.INS.IBAS (or ATFUNCTIONS.H) which resides in .../uv/INCLUDE

Here's an extract:

EQUATE IT$CS        TO -1      ;* clear screen (ANSI)
EQUATE IT$CAH       TO -2      ;* cursor absolute home (ANSI)
EQUATE IT$CLEOS     TO -3      ;* clear to end of screen
EQUATE IT$CLEOL     TO -4      ;* clear to end of line
EQUATE IT$SBLINK    TO -5      ;* start blinking field
EQUATE IT$EBLINK    TO -6      ;* end blinking field

We created our own include to define the most commonly used, using the
supplied names:

EQUATE ERASE      LIT "@(IT$CS)"
EQUATE HOME       LIT "@(IT$CAH)"
EQUATE CS         LIT "@(IT$CLEOS)"
EQUATE CL         LIT "@(IT$CLEOL)"
EQUATE BLNK       LIT "@(IT$SBLINK)"
EQUATE BS         LIT "@(IT$CUB)"
EQUATE BG         LIT "@(IT$SHALF)"
EQUATE FG         LIT "@(IT$EHALF)"
EQUATE INV        LIT "@(IT$SREV)"
EQUATE NORM       LIT "@(IT$EREV)"
etc.


IMO it's best to use EQUATES as then there is no possibility of someone
accidentally assigning something else to those names.

Adrian


















DISCLAIMER:
Disclaimer.  This e-mail is private and confidential. If you are not the 
intended recipient, please advise us by return e-mail immediately, and delete 
the e-mail and any attachments without using or disclosing the contents in any 
way. The views expressed in this e-mail are those of the author, and do not 
represent those of this company unless this is clearly indicated. You should 
scan this e-mail and any attachments for viruses. This company accepts no 
liability for any direct or indirect damage or loss resulting from the use of 
any attachments to this e-mail.
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to