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

      PROGRAM MAIN

      INTEGER*2 NEW_MODE, OLD_MODE
      INTEGER*2 FG_AUTOMODE, FG_GETMODE

      OLD_MODE = FG_GETMODE()
      NEW_MODE = FG_AUTOMODE()
      CALL FG_SETMODE(NEW_MODE)
      CALL FG_INITW
      CALL FG_SETWORLD(-10.0,10.0,-10.0,10.0)

      CALL FG_SETCOLOR(15)
      CALL FG_MOVEW(0.0,10.0)
      CALL FG_DRAWW(0.0,-10.0)
      CALL FG_MOVEW(-10.0,0.0)
      CALL FG_DRAWW(10.0,0.0)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
