libBoxedText 1.0.24
C++ Library for displaying enriched text in an ASCII art box on a console terminal
|
C++ Library for displaying enriched text in an ASCII art box on a console terminal
The libBoxedText library allows to choose each component of the frame in which text is displayed. The global alignment of the text can be specified and the text can be directly read from some file.
The library can deal with some few HTML-like keywords to locally change the formatting of the text.
© 2015-2024 -- LIRMM/CNRS/UM (Laboratoire d'Informatique, de Robotique et de Microélectronique de Montpellier / Centre National de la Recherche Scientifique / Université de Montpellier)
The printed content can be enriched by specific (HTML-like) tags in order to improve its display.
Currently, the supported tags are:
Tag | Description |
---|---|
hr | Display a horizontal line |
p | Delimit an parapgraph |
br | Force a line break |
center | Center the enclosed text |
left | Left align the enclosed text |
right | Right align the enclosed text |
justify | Justify the enclosed text |
pre | Print the text asis (do not interpret the tags but </pre> |
color | Modify the color of the enclosed text (see below) |
b | Display the enclosed text in bold font |
i | Display the enclosed text in italic |
u | Underline the enclosed text |
blink | Make the enclosed text blinking (if supported by the terminal) |
reverse | Do a reverse video |
The color tag needs at least one of the following (key=value) parameters:
fg
Set the foreground colorbg
Set the background colorThe following colors are accepted:
black
red
green
yellow
blue
magenta
cyan
white