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

      PROGRAM MAIN

      INTEGER*2 OLD_MODE
      INTEGER*2 FG_GETMODE

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(16)

      CALL FG_SETCOLOR(14)
      CALL FG_TEXT('yellow',6)

      CALL FG_SETCOLOR(10)
      CALL FG_TEXT(' green',6)

      CALL FG_SETCOLOR(7)
      CALL FG_RECT(0,127,336,349)
      CALL FG_SETCOLOR(12)
      CALL FG_LOCATE(24,0)
      CALL FG_TEXT(' Press any key. ',16)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
