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

      PROGRAM MAIN

      INTEGER*2 OLD_MODE
      INTEGER*2 ROW, COLUMN
      INTEGER*2 FG_GETMODE

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

      CALL FG_SETATTR(14,0,0)
      CALL PUT_STRING('yellow',0,0)

      CALL FG_SETATTR(10,0,0)
      CALL FG_WHERE(ROW,COLUMN)
      CALL PUT_STRING('green',ROW,COLUMN+1)

      CALL FG_SETATTR(12,0,1)
      CALL FG_WHERE(ROW,COLUMN)
      CALL PUT_STRING('blinking',ROW,COLUMN+1)

      CALL FG_SETATTR(12,7,0)
      CALL PUT_STRING(' Press any key. ',24,0)
      CALL FG_WAITKEY

      CALL FG_SETMODE(OLD_MODE)
      CALL FG_RESET

      STOP ' '
      END

      SUBROUTINE PUT_STRING(STRING,ROW,COLUMN)
      CHARACTER*(*) STRING
      INTEGER*2 ROW, COLUMN

      CALL FG_LOCATE(ROW,COLUMN)
      CALL FG_TEXT(STRING,LEN(STRING))

      RETURN
      END
