[CMD]: Move console management prototypes to their own header.
[reactos.git] / reactos / base / shell / cmd / console.h
1
2 #pragma once
3
4 /* Cache codepage */
5 extern UINT InputCodePage;
6 extern UINT OutputCodePage;
7
8 // /* Global variables */
9 // extern BOOL bCtrlBreak;
10 // extern BOOL bIgnoreEcho;
11 // extern BOOL bExit;
12
13 VOID ConInDummy (VOID);
14 VOID ConInDisable (VOID);
15 VOID ConInEnable (VOID);
16 VOID ConInFlush (VOID);
17 VOID ConInKey (PINPUT_RECORD);
18 VOID ConInString (LPTSTR, DWORD);
19
20 VOID ConOutChar (TCHAR);
21 VOID ConOutPuts (LPTSTR);
22 VOID ConPrintf(LPTSTR, va_list, DWORD);
23 INT ConPrintfPaging(BOOL NewPage, LPTSTR, va_list, DWORD);
24 VOID ConOutPrintf (LPTSTR, ...);
25 INT ConOutPrintfPaging (BOOL NewPage, LPTSTR, ...);
26 VOID ConErrChar (TCHAR);
27 VOID ConErrPuts (LPTSTR);
28 VOID ConErrPrintf (LPTSTR, ...);
29 VOID ConOutFormatMessage (DWORD MessageId, ...);
30 VOID ConErrFormatMessage (DWORD MessageId, ...);
31
32 SHORT GetCursorX (VOID);
33 SHORT GetCursorY (VOID);
34 VOID GetCursorXY (PSHORT, PSHORT);
35 VOID SetCursorXY (SHORT, SHORT);
36
37 VOID GetScreenSize (PSHORT, PSHORT);
38 VOID SetCursorType (BOOL, BOOL);
39
40 VOID ConOutResPuts (UINT resID);
41 VOID ConErrResPuts (UINT resID);
42 VOID ConOutResPrintf (UINT resID, ...);
43 VOID ConErrResPrintf (UINT resID, ...);
44 VOID ConOutResPaging(BOOL NewPage, UINT resID);
45
46
47 BOOL ConSetTitle(IN LPCTSTR lpConsoleTitle);
48
49 #ifdef INCLUDE_CMD_BEEP
50 VOID ConRingBell(HANDLE hOutput);
51 #endif
52
53 #ifdef INCLUDE_CMD_CLS
54 VOID ConClearScreen(HANDLE hOutput);
55 #endif
56
57 #ifdef INCLUDE_CMD_COLOR
58 BOOL ConSetScreenColor(WORD wColor, BOOL bFill);
59 #endif
60
61 // TCHAR cgetchar (VOID);
62 // BOOL CheckCtrlBreak (INT);
63
64 // #define PROMPT_NO 0
65 // #define PROMPT_YES 1
66 // #define PROMPT_ALL 2
67 // #define PROMPT_BREAK 3
68
69 // INT PagePrompt (VOID);
70 // INT FilePromptYN (UINT);
71 // INT FilePromptYNA (UINT);