ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
Console Class Reference

Description:

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

Definition at line 23 of file console.hpp.

#include <console.hpp>

Public Static Method Index:

static ALIB_API int GetWidth (bool forceRedetect=false)
 

Protected Static Field Index:

static ALIB_API int lastReceivedWidth = -1
 Console text width.
 

Field Details:

◆ lastReceivedWidth

int lastReceivedWidth = -1
staticprotected

Console text width.

Definition at line 28 of file console.hpp.

Method Details:

◆ GetWidth()

int 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 32 of file console.cpp.


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