blob: b32fe1211d147498b0206f88837dbc2b69f0ef90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
|