summaryrefslogtreecommitdiff
path: root/dedicated/console/TextConsoleUnix.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /dedicated/console/TextConsoleUnix.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'dedicated/console/TextConsoleUnix.h')
-rw-r--r--dedicated/console/TextConsoleUnix.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/dedicated/console/TextConsoleUnix.h b/dedicated/console/TextConsoleUnix.h
new file mode 100644
index 0000000..b32fe12
--- /dev/null
+++ b/dedicated/console/TextConsoleUnix.h
@@ -0,0 +1,44 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+// TextConsoleUnix.h: Unix interface for the TextConsole class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined TEXTCONSOLE_UNIX_H
+#define TEXTCONSOLE_UNIX_H
+
+#ifndef _WIN32
+
+#include <stdio.h>
+#include "textconsole.h"
+
+class CTextConsoleUnix : public CTextConsole
+{
+public:
+ virtual ~CTextConsoleUnix() { }
+
+ // CTextConsole
+ bool Init();
+ void ShutDown();
+ void Print( char * pszMsg );
+
+ void SetTitle( char *pszTitle );
+ void SetStatusLine( char *pszStatus );
+ void UpdateStatus();
+
+ char * GetLine( int index, char *buf, int buflen );
+ int GetWidth();
+
+private:
+ bool m_bConDebug;
+ FILE *m_tty;
+};
+
+#endif // _ndef WIN32
+
+#endif // !defined TEXTCONSOLE_UNIX_H