SCREENATTR function

Purpose

Return a composite character attribute (color).

Syntax

c? = SCREENATTR(row%, column%)

Remarks

The character attribute is an integer value in the range of 0 through 255 (&hFF).  The lowest 4-bits (low-order nibble) contains the foreground color attribute, in the range of 0-15, and the next 4-bits (high-order nibble) contains the background color attribute, in the range of 0-15.

If the coordinates are specified as 0,0, the default screen attribute (that which will be used for subsequent PRINT statements) is returned. Otherwise, the character attribute for the specified location is returned.

See also

COLOR, SCREEN, SCREENX, SCREENY, SCROLL

Example

Clr? = SCREENATTR(row&, col&)

ForeGround? = Clr? MOD 16

BackGround? = Clr? \ 16