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

  1. /************************************************************************
  2. **
  3. ** @(#)dosshell.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(DOSSHELL_h)                // { DOSSHELL_h
  16. #define DOSSHELL_h
  17.  
  18. #define Uses_TEventQueue
  19. #include <tv.h>                // Turbo Vision code galore!!!
  20.  
  21.  
  22. class DosShell : public TEventQueue
  23. {
  24. public:
  25.  
  26.     DosShell                // DOS Shell object
  27.     (
  28.     char *newp            // the prompt for new COMMAND.COM
  29.     );
  30.     void shell();            // DOS Shell Command
  31.  
  32. private:
  33.  
  34.     char *oldP, *P;            // pointers for old DOS prompt
  35.     char *newP;                // pointer for new DOS prompt
  36.     int shIs;                // return code for system()
  37.  
  38. };
  39.  
  40.  
  41. #endif                            // } DOSSHELL_h
  42.