<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


SCREEN Search:

In Graphics Words in TurboForth Kernal

Word Name: SCREEN
Type: Standard word
Data Stack Signature: color --
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Sets screen colour to color.

Example:

0 GMODE
$F0 SCREEN

(sets screen to 40 column mode, with white characters and black screen)

Comment:

In graphics modes 0 and 2, sets screen colour (background colour) and colour of characters as follows:

colour is an 8 bit value, occupying the lower 8 bits of the top of stack.

  • The upper 4 bits determine the character colour
  • The lower 4 bits determine the screen colour

In graphics mode 1 (32 column) sets the screen colour only. For setting character colours in mode 1 see COLOR.

The colour table lists the values for each colour.

See Also: COLOR 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>