ALib C++ Library
Library Version: 2402 R1
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 24 of file console.hpp.

#include <console.hpp>

Public Static Method Index:

static ALIB_API int GetWidth (bool forceRedetect=false)
 

Field Details:

◆ lastReceivedWidth

int lastReceivedWidth = -1
staticprotected

Console text width.

Definition at line 29 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 38 of file console.cpp.


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