ReactOS 0.4.15-dev-8135-g1bc6c90
Console.h
Go to the documentation of this file.
1//
2// Console.h: interface for the CConsole class.
3//
5
6#if !defined(CONSOLE_H__FEF419EC_6EB6_11D3_907D_204C4F4F5020__INCLUDED_)
7#define CONSOLE_H__FEF419EC_6EB6_11D3_907D_204C4F4F5020__INCLUDED_
8
9#include "TextHistory.h"
10#include "Completion.h"
11
13{
14public:
15 void EnableWrite();
16 void DisableWrite();
18 BOOL SetInsertMode(BOOL blnInsetMode);
20 TCHAR * Init(DWORD dwBufferSize, DWORD dwMaxHistoryLines = 0);
21 BOOL ReadLine();
23// BOOL SetOutputMode(DWORD dwMode);
24// BOOL SetInputMode(DWORD dwMode);
25 BOOL SetTextAttribute(WORD wAttributes);
26 BOOL GetTextAttribute(WORD& rwAttributes);
27 BOOL SetTitle(const TCHAR *p);
28 BOOL Write(const TCHAR *p, DWORD dwChars = 0);
29 CConsole();
30 virtual ~CConsole();
31 unsigned int GetTabWidth();
32private:
40 BOOL WriteString(const TCHAR *pchString, COORD Position);
42 BOOL m_blnInsetMode; // TRUE - insert, FALSE - overwrite
58};
59
60#endif // !defined(CONSOLE_H__FEF419EC_6EB6_11D3_907D_204C4F4F5020__INCLUDED_)
const TCHAR *(* ReplaceCompletionCallback)(unsigned __int64 &rnIndex, const BOOL *pblnForward, const TCHAR *pchContext, const TCHAR *pchBegin)
Definition: Completion.h:7
ReplaceCompletionCallback m_pfReplaceCompletionCallback
Definition: Console.h:49
SHORT m_LinesScrolled
Definition: Console.h:50
CTextHistory m_History
Definition: Console.h:52
BOOL m_blnOldInputModeSaved
Definition: Console.h:56
virtual ~CConsole()
Definition: Console.cpp:70
DWORD m_dwOldInputMode
Definition: Console.h:55
BOOL SetInsertMode(BOOL blnInsetMode)
Definition: Console.cpp:1043
DWORD m_dwOldOutputMode
Definition: Console.h:54
BOOL SetTitle(const TCHAR *p)
Definition: Console.cpp:222
HANDLE m_hStdError
Definition: Console.h:35
TCHAR * m_pchBuffer1
Definition: Console.h:46
unsigned int GetTabWidth()
Definition: Console.cpp:217
BOOL WriteString(const TCHAR *pchString, COORD Position)
Definition: Console.cpp:1012
BOOL FlushInputBuffer()
Definition: Console.cpp:243
void BeginScrollingOperation()
Definition: Console.cpp:1007
HANDLE m_hStdIn
Definition: Console.h:34
WORD m_wAttributes
Definition: Console.h:38
BOOL m_blnMoreMode
Definition: Console.h:51
BOOL SetTextAttribute(WORD wAttributes)
Definition: Console.cpp:227
BOOL m_blnOldOutputModeSaved
Definition: Console.h:57
HANDLE m_hStdOut
Definition: Console.h:33
SHORT m_Lines
Definition: Console.h:39
TCHAR * m_pchBuffer
Definition: Console.h:45
COORD m_CursorPosition
Definition: Console.h:36
BOOL GetTextAttribute(WORD &rwAttributes)
Definition: Console.cpp:858
TCHAR * m_pchBuffer2
Definition: Console.h:47
BOOL WriteChar(TCHAR ch)
Definition: Console.cpp:990
CConsole()
Definition: Console.cpp:50
BOOL m_blnInsetMode
Definition: Console.h:42
void DisableWrite()
Definition: Console.cpp:1064
DWORD m_dwOverwriteModeCursorHeight
Definition: Console.h:44
BOOL ReadLine()
Definition: Console.cpp:249
COORD m_BufferSize
Definition: Console.h:37
BOOL Write(const TCHAR *p, DWORD dwChars=0)
Definition: Console.cpp:90
DWORD m_dwInsertModeCursorHeight
Definition: Console.h:43
BOOL m_blnDisableWrite
Definition: Console.h:53
void EnableWrite()
Definition: Console.cpp:1080
DWORD m_dwBufferSize
Definition: Console.h:48
void SetReplaceCompletionCallback(ReplaceCompletionCallback pfCallback)
Definition: Console.cpp:1058
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
GLfloat GLfloat p
Definition: glext.h:8902
short SHORT
Definition: pedump.c:59
Definition: bl.h:1338
static COORD Position
Definition: mouse.c:34
char TCHAR
Definition: xmlstorage.h:189