libDwm-0.9.45
Dwm::TerminalTricks Class Reference

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
 

Detailed Description

Encapsulate simple terminal tricks (bold and underscore).

Constructor & Destructor Documentation

◆ TerminalTricks()

Dwm::TerminalTricks::TerminalTricks ( )

Constructor.

Initializes bold and underscore start and stop strings according to TERM from the environment. Turns the terminal tricks on.

Member Function Documentation

◆ 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.


The documentation for this class was generated from the following file: