home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_GEN / FACETV.ZIP / TEXTMODE.H < prev    next >
C/C++ Source or Header  |  1993-12-09  |  816b  |  39 lines

  1. /************************************************************************
  2. **
  3. ** @(#)textmode.h    04/01/93    Chris Ahlstrom
  4. **
  5. **  ------------------------
  6. **  73340.26!compuserve.com
  7. **  ------------------------
  8. **
  9. ** C++ version
  10. **
  11. **    Class for implementing a DOS shell.
  12. **
  13. *************************************************************************/
  14.  
  15. #if !defined(TEXTMODE_h)                // { TEXTMODE_h
  16. #define TEXTMODE_h
  17.  
  18. #include <conio.h>            // for declaring textmode()
  19.  
  20. class TextMode
  21. {
  22. public:
  23.  
  24.     TextMode
  25.     (
  26.     int startmode = C80        // initial text mode, normal color
  27.     );
  28.     void changeMode();            // changing of the text mode
  29.  
  30. private:
  31.  
  32.     int textMode;            // the current text mode in force
  33.     int chngMode;            // nonzero if mode needs updating
  34. };
  35.  
  36.  
  37. #endif                            // } TEXTMODE_h
  38.  
  39.