2017-10-16 21:58:23 +00:00
|
|
|
The ReactOS Console Utilities Library v0.2
|
2016-10-22 21:54:29 +00:00
|
|
|
==========================================
|
|
|
|
|
2017-10-16 21:58:23 +00:00
|
|
|
LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
|
|
COPYRIGHT: Copyright 2017-2018 ReactOS Team
|
|
|
|
Copyright 2017-2018 Hermes Belusca-Maito
|
2016-10-22 21:54:29 +00:00
|
|
|
CREDITS: Thanks to the many people who originally wrote the code that finally
|
|
|
|
ended up inside this library, with more or less refactoring, or
|
|
|
|
whose code served as a basis for some functions of the library.
|
|
|
|
|
|
|
|
|
|
|
|
INTRODUCTION
|
|
|
|
~-~-~-~-~-~-
|
|
|
|
|
|
|
|
This library contains common functions used in many places inside the ReactOS
|
|
|
|
console utilities and the ReactOS Command-Line Interpreter. Most of these
|
|
|
|
functions are related with internationalisation and the problem of correctly
|
|
|
|
displaying Unicode text on the console. Besides those, helpful functions for
|
|
|
|
retrieving strings and messages from application resources are provided,
|
|
|
|
together with printf-like functionality.
|
|
|
|
|
|
|
|
|
|
|
|
CONTENTS
|
|
|
|
~-~-~-~-
|
|
|
|
|
2017-10-16 21:58:23 +00:00
|
|
|
-- Main ConUtils Library --
|
|
|
|
|
|
|
|
0. "BASE" (utils.c and utils.h): Base set of functions for loading
|
2016-11-03 15:47:45 +00:00
|
|
|
string resources and message strings, and handle type identification.
|
2016-10-22 21:54:29 +00:00
|
|
|
|
2017-10-16 21:58:23 +00:00
|
|
|
1. "STREAM" (stream.c and stream.h, instream.c and instream.h, outstream.c
|
|
|
|
and outstream.h): Console Stream API (CON_STREAM):
|
2016-10-22 21:54:29 +00:00
|
|
|
Stream initialization, basic ConStreamRead/Write. Stream utility functions:
|
2017-10-16 21:58:23 +00:00
|
|
|
ConPuts/Printf, ConResPuts/Printf, ConMsgPuts/Printf. Depends on "BASE".
|
2016-10-22 21:54:29 +00:00
|
|
|
|
2017-10-16 21:58:23 +00:00
|
|
|
2. "SCREEN" (screen.c and screen.h): Console Screen API (CON_SCREEN):
|
2016-10-22 21:54:29 +00:00
|
|
|
Introduces the notion of console/terminal screen around the streams. Manages
|
|
|
|
console/terminal screen metrics for Win32 consoles and TTYs (serial...).
|
|
|
|
Additional Screen utility functions.
|
2017-10-16 21:58:23 +00:00
|
|
|
Depends on "STREAM", and indirectly on "BASE".
|
2016-10-22 21:54:29 +00:00
|
|
|
|
2017-10-16 21:58:23 +00:00
|
|
|
3. "PAGER" (pager.c and pager.h): Console Pager API (CON_PAGER):
|
2016-10-22 21:54:29 +00:00
|
|
|
Implements core console/terminal paging functionality around console screens.
|
2017-10-16 21:58:23 +00:00
|
|
|
Depends on "SCREEN", and indirectly on "STREAM" and "BASE".
|