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

  1. #include <fastgraf.h>
  2. #include <string.h>
  3.  
  4. void main(void);
  5. void put_string(char*,int,int);
  6.  
  7. void main()
  8. {
  9.    int old_mode;
  10.    int row, column;
  11.  
  12.    fg_initpm();
  13.    old_mode = fg_getmode();
  14.    fg_setmode(3);
  15.    fg_cursor(0);
  16.  
  17.    fg_setattr(14,0,0);
  18.    put_string("yellow",0,0);
  19.  
  20.    fg_setattr(10,0,0);
  21.    fg_where(&row,&column);
  22.    put_string("green",row,column+1);
  23.  
  24.    fg_setattr(12,0,1);
  25.    fg_where(&row,&column);
  26.    put_string("blinking",row,column+1);
  27.  
  28.    fg_setattr(12,7,0);
  29.    put_string(" Press any key. ",24,0);
  30.    fg_waitkey();
  31.  
  32.    fg_setmode(old_mode);
  33.    fg_reset();
  34. }
  35.  
  36. void put_string(string,row,column)
  37. char *string;
  38. int row, column;
  39. {
  40.    fg_locate(row,column);
  41.    fg_text(string,strlen(string));
  42. }
  43.