PRINT INK <value>;
This can be used to change the permanent print settings, or the temporary ones. When used as a direct command:
INK nwhere n is a number from 0-8, then the subsequent print statements will have a foreground colour based on the number used. As the ZX Spectrum manual states:
0 - black 1 - blue 2 - red 3 - purple, technically called magenta 4 - green 5 - pale blue, technically called cyan 6 - yellow 7 - white 8 - transparent (Do not change the paper value in the square being printed)
Ink 9 - Contrast - isn't currently supported.
Just as in Sinclair basic, this command can be used as temporary colours by combining them with a print statement:
PRINT INK 2; "This is red text"
This format does not change the permanent colour settings and only affects the characters printed within that print statement.
- This function is Near Sinclair BASIC compatible.