#include <OpenMS/APPLICATIONS/ConsoleUtils.h>
|
int | console_width_ |
| width of console we are currently in (if not determinable, set to 80 as default) More...
|
|
◆ ConsoleUtils() [1/2]
◆ ConsoleUtils() [2/2]
◆ breakString()
make a string console friendly by breaking it into multiple lines according to the console width The 'indentation' gives the number of spaces which is prepended beginning at the second (!) line, so one gets a left aligned block which has some space to the left. An indentation of 0 results in the native console's default behaviour: just break at the end of its width and start a new line. but usually one wants nicely intended blocks, which the console does not support 'max_lines' gives the upper limit of lines returned after breaking is finished. Excess lines are removed and replaced by '...', BUT the last line will be preserved.
- Parameters
-
input | String to be split |
indentation | Number of spaces to use for lines 2 until last line. |
max_lines | Limit of output lines (all others are removed) |
◆ breakString_()
returns a console friendly version of input
◆ operator=()
◆ readConsoleSize_()
read console settings for output shaping
◆ console_width_
width of console we are currently in (if not determinable, set to 80 as default)