ReactOS  0.4.14-dev-358-gbef841c
screen.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Console Utilities Library
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Console/terminal screen management.
5  * COPYRIGHT: Copyright 2017-2018 ReactOS Team
6  * Copyright 2017-2018 Hermes Belusca-Maito
7  */
8 
16 #ifndef __SCREEN_H__
17 #define __SCREEN_H__
18 
19 #pragma once
20 
21 #ifndef _UNICODE
22 #error The ConUtils library at the moment only supports compilation with _UNICODE defined!
23 #endif
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 #if 0
31 
32 VOID
34 
35 #endif
36 
37 
38 
39 #include <wincon.h>
40 
41 typedef struct _CON_SCREEN
42 {
44  // PCON_STREAM In;
48 
49 #define INIT_CON_SCREEN(pStream) {(pStream)} /* {(pStream), {{}}, {{}}} */
50 
51 #define InitializeConScreen(pScreen, pStream) \
52 do { \
53  (pScreen)->Stream = (pStream); \
54  RtlZeroMemory(&(pScreen)->csbi, sizeof((pScreen)->csbi)); \
55  RtlZeroMemory(&(pScreen)->cci , sizeof((pScreen)->cci )); \
56 } while (0)
57 
58 BOOL
62 
63 VOID
65 
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 #endif /* __SCREEN_H__ */
72 
73 /* EOF */
PCON_STREAM Stream
Definition: screen.h:43
#define IN
Definition: typedefs.h:38
VOID ConClearLine(IN PCON_STREAM Stream)
Definition: outstream.c:1483
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL ConGetScreenInfo(IN PCON_SCREEN Screen, OUT PCONSOLE_SCREEN_BUFFER_INFO pcsbi)
Definition: screen.c:73
struct _CON_SCREEN CON_SCREEN
struct _CON_SCREEN * PCON_SCREEN
CONSOLE_CURSOR_INFO cci
Definition: screen.h:46
CONSOLE_SCREEN_BUFFER_INFO csbi
Definition: screen.h:45
VOID ConClearScreen(IN PCON_SCREEN Screen)
Definition: screen.c:131
#define OUT
Definition: typedefs.h:39
Definition: console.h:34
_Inout_opt_ PUNICODE_STRING _Inout_opt_ PUNICODE_STRING Stream
Definition: fltkernel.h:1092