2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Console Utilities Library
4 * FILE: sdk/lib/conutils/screen.h
5 * PURPOSE: Console/terminal screen management.
6 * PROGRAMMERS: - Hermes Belusca-Maito (for the library);
7 * - All programmers who wrote the different console applications
8 * from which I took those functions and improved them.
15 #error The ConUtils library at the moment only supports compilation with _UNICODE defined!
26 ConClearLine(IN PCON_STREAM Stream
);
34 typedef struct _CON_SCREEN
36 PCON_STREAM Stream
; // Out
38 CONSOLE_SCREEN_BUFFER_INFO csbi
;
39 CONSOLE_CURSOR_INFO cci
;
40 } CON_SCREEN
, *PCON_SCREEN
;
42 #define INIT_CON_SCREEN(pStream) {(pStream)} /* {(pStream), {{}}, {{}}} */
44 #define InitializeConScreen(pScreen, pStream) \
46 (pScreen)->Stream = (pStream); \
47 RtlZeroMemory(&(pScreen)->csbi, sizeof((pScreen)->csbi)); \
48 RtlZeroMemory(&(pScreen)->cci , sizeof((pScreen)->cci )); \
53 IN PCON_SCREEN Screen
,
54 OUT PCONSOLE_SCREEN_BUFFER_INFO pcsbi
);
57 ConClearScreen(IN PCON_SCREEN Screen
);
63 #endif /* __SCREEN_H__ */