ALib C++ Library
Library Version: 2510 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 ALIB_DLL int GetWidth (bool forceRedetect=false)
 

Protected Static Field Index:

static ALIB_DLL 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)
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.
Returns
The console width.

Definition at line 43 of file console.cpp.


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