ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::system::Console Class Reference

Description:

This class provides system-dependent features in respect the console attached to a process.

Definition at line 13 of file console.inl.

Public Static Method Index:

static int GetWidth (bool forceRedetect=false, int defaultWidth=80)

Protected Static Field Index:

static int lastReceivedWidth = -1
 Console text width.

Field Details:

◆ lastReceivedWidth

int alib::system::Console::lastReceivedWidth = -1
staticprotected

Console text width.

Definition at line 18 of file console.inl.

Method Details:

◆ GetWidth()

int alib::system::Console::GetWidth ( bool forceRedetect = false,
int defaultWidth = 80 )
static

Tries to detect the current width of the console. Returns 0 in case of failure.

Parameters
forceRedetectIf true, the console size is tried to be detected, even if it had been done before (and even if it failed before).
Defaults to false.
defaultWidthThe default value, in case the detection fails or the detected value is 0.
Defaults to 80.
Returns
The console width.

Definition at line 43 of file console.cpp.


The documentation for this class was generated from the following files: