HTBasic Help
×
Menu
Index

PRINT PEN

Selects the pen color used for the output area and DISP line.
 
 PRINT PEN pen-number
 
Usage:
PRINT PEN Value
PRINT PEN 1
IF Green THEN PRINT PEN 2
 
Example:           PRINT PEN.BAS
 
Description:
PRINT PEN overrides any ALPHA PEN statement that may be in effect. The pen-number is a numeric expression rounded to an integer. If you are using CRTB, the bit-mapped display driver mode, legal values are from 0 to 15. (HP BASIC supports values to 255.) If you are using CRTA, the non-bit-mapped display driver mode, legal values are from 136 to 143. This statement is equivalent to CONTROL CRT,15;pen-number.
 
See Also: