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

      PROGRAM MAIN

      INTEGER*1 MATRIX(8)
      INTEGER*2 OLD_MODE
      INTEGER*2 FG_GETMODE

      DATA MATRIX /15,9,9,15,15,9,9,15/

      OLD_MODE = FG_GETMODE()
      CALL FG_SETMODE(19)

      CALL FG_DRECT(0,49,0,49,MATRIX)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END
