|
ReactOS 0.4.16-dev-1946-g52006dd
|
Console/terminal paging functionality. More...
#include <windef.h>#include <winbase.h>#include <wincon.h>#include <winnls.h>#include <strsafe.h>#include "conutils.h"#include "stream.h"#include "screen.h"#include "pager.h"
Go to the source code of this file.
Macros | |
| #define | UNICODE |
| #define | _UNICODE |
| #define | CON_STREAM_WRITE ConStreamWrite |
| #define | CP_SHIFTJIS 932 |
| #define | CP_HANGUL 949 |
| #define | CP_JOHAB 1361 |
| #define | CP_GB2312 936 |
| #define | CP_BIG5 950 |
| #define | IsCJKCodePage(CodePage) |
Functions | ||||||||||||||||
| static INT | GetWidthOfCharCJK (IN UINT nCodePage, IN WCHAR ch) | |||||||||||||||
| static BOOL | GetNextLine (IN OUT PCON_PAGER Pager, IN PCTCH TextBuff, IN SIZE_T cch) | |||||||||||||||
| Retrieves a new text line, or continue fetching the current one. | ||||||||||||||||
| static BOOL | ConPagerWorker (IN PCON_PAGER Pager, IN PCTCH TextBuff, IN DWORD cch) | |||||||||||||||
| Does the main paging work: fetching text lines and displaying them. | ||||||||||||||||
ConWritePaging | ||||||||||||||||
Pages the contents of a user-specified character buffer on the screen.
| ||||||||||||||||
| BOOL | ConWritePaging (IN PCON_PAGER Pager, IN PAGE_PROMPT PagePrompt, IN BOOL StartPaging, IN PCTCH szStr, IN DWORD len) | |||||||||||||||
| BOOL | ConPutsPaging (IN PCON_PAGER Pager, IN PAGE_PROMPT PagePrompt, IN BOOL StartPaging, IN PCTSTR szStr) | |||||||||||||||
| BOOL | ConResPagingEx (IN PCON_PAGER Pager, IN PAGE_PROMPT PagePrompt, IN BOOL StartPaging, IN HINSTANCE hInstance OPTIONAL, IN UINT uID) | |||||||||||||||
| BOOL | ConResPaging (IN PCON_PAGER Pager, IN PAGE_PROMPT PagePrompt, IN BOOL StartPaging, IN UINT uID) | |||||||||||||||
Console/terminal paging functionality.
Definition in file pager.c.
| #define CON_STREAM_WRITE ConStreamWrite |
| #define IsCJKCodePage | ( | CodePage | ) |
Does the main paging work: fetching text lines and displaying them.
Definition at line 219 of file pager.c.
Referenced by ConWritePaging().
| BOOL ConPutsPaging | ( | IN PCON_PAGER | Pager, |
| IN PAGE_PROMPT | PagePrompt, | ||
| IN BOOL | StartPaging, | ||
| IN PCTSTR | szStr | ||
| ) |
Definition at line 646 of file pager.c.
| BOOL ConResPaging | ( | IN PCON_PAGER | Pager, |
| IN PAGE_PROMPT | PagePrompt, | ||
| IN BOOL | StartPaging, | ||
| IN UINT | uID | ||
| ) |
Definition at line 681 of file pager.c.
Referenced by ConOutResPaging().
| BOOL ConResPagingEx | ( | IN PCON_PAGER | Pager, |
| IN PAGE_PROMPT | PagePrompt, | ||
| IN BOOL | StartPaging, | ||
| IN HINSTANCE hInstance | OPTIONAL, | ||
| IN UINT | uID | ||
| ) |
Definition at line 663 of file pager.c.
Referenced by ConResPaging().
| BOOL ConWritePaging | ( | IN PCON_PAGER | Pager, |
| IN PAGE_PROMPT | PagePrompt, | ||
| IN BOOL | StartPaging, | ||
| IN PCTCH | szStr, | ||
| IN DWORD | len | ||
| ) |
Definition at line 549 of file pager.c.
Referenced by ConPrintfVPaging(), ConPutsPaging(), ConResPagingEx(), and wmain().
Retrieves a new text line, or continue fetching the current one.
Definition at line 68 of file pager.c.
Referenced by ConPagerWorker().
Definition at line 48 of file pager.c.
Referenced by ConPagerWorker().