home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 07-03.C < prev    next >
Text File  |  1995-01-20  |  424b  |  30 lines

  1. #include <fastgraf.h>
  2.  
  3. void main(void);
  4.  
  5. void main()
  6. {
  7.    int old_mode;
  8.  
  9.    fg_initpm();
  10.    old_mode = fg_getmode();
  11.    fg_setmode(3);
  12.    fg_cursor(0);
  13.  
  14.    fg_setattr(7,0,0);
  15.    fg_text("hello",5);
  16.    fg_waitkey();
  17.  
  18.    fg_locate(0,0);
  19.    fg_setattr(0,7,0);
  20.    fg_chgattr(5);
  21.    fg_waitkey();
  22.  
  23.    fg_locate(0,0);
  24.    fg_chgtext("H",1);
  25.    fg_waitkey();
  26.  
  27.    fg_setmode(old_mode);
  28.    fg_reset();
  29. }
  30.