Function
getTerminalSize
Retrieve size of terminal.
Include Headers
seqan/misc/misc_terminal.h
Parameters
The column count is written here. Types: | |
The line count is written here. Types: |
Remarks
On Windows, rows contains the number of rows in the terminal *buffer*, not the window.
Return Values
Types: bool
Examples
The following demonstrates the usage.
unsigned rows = 0, cols = 0;
bool success = getTerminalSize(cols, rows);
std::cerr << "rows == " << rows << ", cols == " << cols
<< ", success == " << success << "\n";
SeqAn - Sequence Analysis Library - www.seqan.de