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

      PROGRAM MAIN

      INTEGER*2 MODE
      INTEGER*2 FG_GETMODE

      MODE = FG_GETMODE()
      CALL FG_SETMODE(9)

      CALL FG_PALETTE(0,1)
      CALL FG_PALETTE(1,14)

      CALL FG_SETCOLOR(1)
      CALL FG_TEXT('Hello',5)
      CALL FG_WAITKEY

      CALL FG_PALETTE(1,15)
      CALL FG_WAITKEY

      CALL FG_SETMODE(MODE)
      CALL FG_RESET

      STOP ' '
      END
