Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // TextConsoleWin32.h: Win32 interface for the TextConsole class.
  9. //
  10. //////////////////////////////////////////////////////////////////////
  11. #if !defined TEXTCONSOLE_WIN32_H
  12. #define TEXTCONSOLE_WIN32_H
  13. #pragma once
  14. #ifdef _WIN32
  15. #include <windows.h>
  16. #include "TextConsole.h"
  17. class CTextConsoleWin32 : public CTextConsole
  18. {
  19. public:
  20. CTextConsoleWin32();
  21. virtual ~CTextConsoleWin32()
  22. {
  23. };
  24. bool Init( /*IBaseSystem * system*/ );
  25. void ShutDown( void );
  26. void PrintRaw( char * pszMsz, int nChars = 0 );
  27. void Echo( char * pszMsz, int nChars = 0 );
  28. char * GetLine( void );
  29. int GetWidth( void );
  30. void SetTitle( char * pszTitle );
  31. void SetStatusLine( char * pszStatus );
  32. void UpdateStatus( void );
  33. void SetColor( WORD );
  34. void SetVisible( bool visible );
  35. private:
  36. HANDLE hinput; // standard input handle
  37. HANDLE houtput; // standard output handle
  38. WORD Attrib; // attrib colours for status bar
  39. char statusline[81]; // first line in console is status line
  40. };
  41. #endif // _WIN32
  42. #endif // !defined