Team Fortress 2 Source Code as on 22/4/2020
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.

44 lines
912 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. // TextConsoleUnix.h: Unix interface for the TextConsole class.
  9. //
  10. //////////////////////////////////////////////////////////////////////
  11. #if !defined TEXTCONSOLE_UNIX_H
  12. #define TEXTCONSOLE_UNIX_H
  13. #ifndef _WIN32
  14. #include <stdio.h>
  15. #include "textconsole.h"
  16. class CTextConsoleUnix : public CTextConsole
  17. {
  18. public:
  19. virtual ~CTextConsoleUnix() { }
  20. // CTextConsole
  21. bool Init();
  22. void ShutDown();
  23. void Print( char * pszMsg );
  24. void SetTitle( char *pszTitle );
  25. void SetStatusLine( char *pszStatus );
  26. void UpdateStatus();
  27. char * GetLine( int index, char *buf, int buflen );
  28. int GetWidth();
  29. private:
  30. bool m_bConDebug;
  31. FILE *m_tty;
  32. };
  33. #endif // _ndef WIN32
  34. #endif // !defined TEXTCONSOLE_UNIX_H