Encapsulate simple terminal tricks (bold and underscore). More...
#include <DwmTerminalTricks.hh>
Public Member Functions | |
| TerminalTricks () | |
| Constructor. | |
| void | On (bool on) |
If on is true, turns the terminal tricks on. | |
| template<typename T > | |
| std::string | Bold (const T &t) const |
Returns a string representation of t, wrapped with bold start and end strings for terminal output in bold. | |
| template<typename T > | |
| std::string | Underscore (const T &t) const |
Returns a string representation of t, wrapped with underscore start and end strings for terminal output with underscore. | |
| void | Bold (std::ostream &os, bool on) |
| void | Underscore (std::ostream &os, bool on) |
| int | Columns () const |
| int | Rows () const |
Encapsulate simple terminal tricks (bold and underscore).
| Dwm::TerminalTricks::TerminalTricks | ( | ) |
Constructor.
Initializes bold and underscore start and stop strings according to TERM from the environment. Turns the terminal tricks on.
| void Dwm::TerminalTricks::On | ( | bool | on | ) |
If on is true, turns the terminal tricks on.
If on is false, turns the terminal tricks off.