SETATTR

Syntax

SETATTR number

Explanation

SETATTR sets the color of the text and background in the Listener window according to its input. The input to SETATTR is based on the formula:

(background color) * 16 + foreground color.

When Logo loads, the default attribute is 240, which corresponds to a background color of 15 and a foreground color of 0.

Note that only the foreground color of the text that Logo outputs is changed. If you work with syntax highlighting, all the special colors which highlight your text do not change.

See also GETATTR, TEXTBG and TEXTFG.

Examples

? SETATTR 53

? SETATTR 233

? SETATTR 181