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

      PROGRAM MAIN

      INTEGER*2 OLD_MODE
      INTEGER*2 FG_GETMODE

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(19)
      CALL FG_SETCOLOR(9)
      CALL FG_RECT(0,159,0,199)
      CALL FG_SETCOLOR(15)
      CALL FG_RECT(160,319,0,199)
      CALL FG_WAITKEY

      CALL FG_BOXX(80,239,50,149)
      CALL FG_WAITKEY
      CALL FG_BOXX(80,239,50,149)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
