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

      PROGRAM MAIN

      INTEGER*2 OLD_MODE
      INTEGER*2 FG_GETMODE

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(3)
      CALL FG_CURSOR(0)

      CALL FG_SETCOLOR(7)
      CALL FG_RECT(0,79,0,24)
      CALL FG_SETATTR(10,7,0)
      CALL FG_TEXT('line one',8)
      CALL FG_LOCATE(1,0)
      CALL FG_TEXT('line two',8)
      CALL FG_WAITKEY

      CALL FG_SETCOLOR(7)
      CALL FG_SCROLL(0,7,1,1,1,1)
      CALL FG_WAITKEY
      CALL FG_SCROLL(0,7,2,2,-1,1)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
