Classes | |
class | ConsoleInput |
The smjg.libs.util.console.ConsoleInput class is used to receive text from the standard input. More... | |
class | ConsoleOutput |
The smjg.libs.util.console.ConsoleOutput class used to write out text to the standard output and error streams. More... | |
class | ConsoleException |
The smjg.libs.util.console.ConsoleException class is an exception thrown when a console I/O operation fails. More... | |
Functions | |
int | isatty (int) |
int | GetConsoleCP () |
int | GetConsoleOutputCP () |
HANDLE | GetStdHandle (uint) |
BOOL | ReadConsoleW (HANDLE, LPVOID, DWORD, LPDWORD, LPVOID) |
Variables | |
ConsoleInput | cIn |
The standard input stream. | |
ConsoleOutput | cOut |
The standard output stream. | |
ConsoleOutput | cErr |
The standard error stream. |
The smjg.libs.util.console module provides a means of communicating with the standard input and output streams. It is designed to provide the following benefits over stream classes in Phobos:
This is not intended to be a sophisticated text I/O library. The TextStream class in Indigo will provide something much more powerful when and if it is completed.
Any application that uses this module should use it consistently throughout if possible. This ensures that the EOF fix works correctly and prevents buffering conflicts between different I/O libraries/APIs.
int smjg.libs.util.console.GetConsoleCP | ( | ) |
int smjg.libs.util.console.GetConsoleOutputCP | ( | ) |
HANDLE smjg.libs.util.console.GetStdHandle | ( | uint | ) |
int smjg.libs.util.console.isatty | ( | int | ) |
BOOL smjg.libs.util.console.ReadConsoleW | ( | HANDLE | , | |
LPVOID | , | |||
DWORD | , | |||
LPDWORD | , | |||
LPVOID | ||||
) |
The standard error stream.
The standard input stream.
The standard output stream.