$INCLUDE: 'C:\FG\INTRFACE.FOR'

      PROGRAM MAIN

      INTEGER*2 MODE
      INTEGER*2 FG_GETMODE

      MODE = FG_GETMODE()
      CALL FG_SETMODE(4)

      CALL FG_DEFCOLOR(0,1)
      CALL FG_DEFCOLOR(255,1)

      CALL FG_SETCOLOR(0)
      CALL FG_TEXT('0',1)
      CALL FG_SETCOLOR(1)
      CALL FG_TEXT(' 1',2)
      CALL FG_SETCOLOR(255)
      CALL FG_TEXT(' 255',4)
      CALL FG_WAITKEY

      CALL FG_SETMODE(MODE)
      CALL FG_RESET

      STOP ' '
      END
