ReactOS 0.4.15-dev-5669-g09dde2c
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
26extern "C" {
27#endif
28
29
30#if 0
31
32VOID
34
35#endif
36
37
38
39#include <wincon.h>
40
41typedef struct _CON_SCREEN
42{
44 // PCON_STREAM In;
48
49#define INIT_CON_SCREEN(pStream) {(pStream)} /* {(pStream), {{}}, {{}}} */
50
51#define InitializeConScreen(pScreen, pStream) \
52do { \
53 (pScreen)->Stream = (pStream); \
54 RtlZeroMemory(&(pScreen)->csbi, sizeof((pScreen)->csbi)); \
55 RtlZeroMemory(&(pScreen)->cci , sizeof((pScreen)->cci )); \
56} while (0)
57
58BOOL
62
63VOID
65
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* __SCREEN_H__ */
72
73/* EOF */
@ Screen
Definition: console.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
static IStream Stream
Definition: htmldoc.c:1115
VOID ConClearLine(IN PCON_STREAM Stream)
Definition: outstream.c:1483
BOOL ConGetScreenInfo(IN PCON_SCREEN Screen, OUT PCONSOLE_SCREEN_BUFFER_INFO pcsbi)
Definition: screen.c:73
struct _CON_SCREEN * PCON_SCREEN
struct _CON_SCREEN CON_SCREEN
VOID ConClearScreen(IN PCON_SCREEN Screen)
Definition: screen.c:131
CONSOLE_SCREEN_BUFFER_INFO csbi
Definition: screen.h:45
CONSOLE_CURSOR_INFO cci
Definition: screen.h:46
PCON_STREAM Stream
Definition: screen.h:43
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40