40#ifndef _DWMTERMINALTRICKS_HH_
41#define _DWMTERMINALTRICKS_HH_
72 std::string
Bold(
const T & t)
const
74 std::ostringstream os;
76 os.imbue(std::locale(
""));
92 std::ostringstream os;
94 os.imbue(std::locale(
""));
95 os << _startUnderscore;
106 void Bold(std::ostream & os,
bool on)
110 os.imbue(std::locale(
""));
127 os.imbue(std::locale(
""));
128 os << _startUnderscore;
131 os << _endUnderscore;
142 std::string _startBold;
143 std::string _endBold;
144 std::string _startUnderscore;
145 std::string _endUnderscore;
Encapsulate simple terminal tricks (bold and underscore).
Definition DwmTerminalTricks.hh:52
TerminalTricks()
Constructor.
void On(bool on)
If on is true, turns the terminal tricks on.
std::string Bold(const T &t) const
Returns a string representation of t, wrapped with bold start and end strings for terminal output in ...
Definition DwmTerminalTricks.hh:72
std::string Underscore(const T &t) const
Returns a string representation of t, wrapped with underscore start and end strings for terminal outp...
Definition DwmTerminalTricks.hh:90