ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Static Methods | Protected Static Fields | List of all members
Console Class Reference

#include <console.hpp>

Class Description


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

Definition at line 26 of file console.hpp.

Public Static Methods

static ALIB_API int GetWidth (bool forceRedetect=false)
 

Protected Static Fields

static ALIB_API int lastReceivedWidth = -1
 

Member Function Documentation

◆ 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 37 of file console.cpp.

Member Data Documentation

◆ lastReceivedWidth

int lastReceivedWidth = -1
staticprotected

Console text width.

Definition at line 31 of file console.hpp.


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