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

      PROGRAM MAIN

      INTEGER*2 MODE
      INTEGER*2 FG_GETMODE

      MODE = FG_GETMODE()
      CALL FG_SETMODE(15)

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

      CALL FG_PALETTE(4,8)
      CALL FG_WAITKEY

      CALL FG_SETMODE(MODE)
      CALL FG_RESET

      STOP ' '
      END
