2 * PROJECT: ReactOS Console Utilities Library
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Console/terminal paging functionality.
5 * COPYRIGHT: Copyright 2017-2018 ReactOS Team
6 * Copyright 2017-2018 Hermes Belusca-Maito
13 * @brief Console/terminal paging functionality.
22 #error The ConUtils library at the moment only supports compilation with _UNICODE defined!
30 // #include <wincon.h>
33 typedef struct _CON_PAGER
37 // TODO: Add more properties. Maybe those extra parameters
38 // of PAGE_PROMPT could go there?
40 /* Used to count number of lines since last pause */
42 } CON_PAGER
, *PCON_PAGER
;
44 #define INIT_CON_PAGER(pScreen) {(pScreen), 0}
46 #define InitializeConPager(pPager, pScreen) \
48 (pPager)->Screen = (pScreen); \
49 (pPager)->LineCount = 0; \
53 typedef BOOL (__stdcall
*PAGE_PROMPT
)(
61 IN PAGE_PROMPT PagePrompt
,
69 IN PAGE_PROMPT PagePrompt
,
76 IN PAGE_PROMPT PagePrompt
,
78 IN HINSTANCE hInstance OPTIONAL
,
84 IN PAGE_PROMPT PagePrompt
,
92 #endif /* __PAGER_H__ */