cpp-terminal 1.0.0
Small C++ library for writing multiplatform terminal applications
Loading...
Searching...
No Matches
style.hpp File Reference
#include "cpp-terminal/iostream.hpp"
#include <cstdint>
#include <string>

Go to the source code of this file.

Namespaces

namespace  Term
 

Enumerations

enum class  Term::Style : std::uint8_t {
  Term::Reset = 0 , Term::Bold = 1 , Term::Dim = 2 , Term::Italic = 3 ,
  Term::Underline = 4 , Term::Blink = 5 , Term::BlinkRapid = 6 , Term::Reversed = 7 ,
  Term::Conceal = 8 , Term::Crossed = 9 , Term::Font0 = 10 , Term::ResetFont = 10 ,
  Term::Font1 = 11 , Term::Font2 = 12 , Term::Font3 = 13 , Term::Font4 = 14 ,
  Term::Font5 = 15 , Term::Font6 = 16 , Term::Font7 = 17 , Term::Font8 = 18 ,
  Term::Font9 = 19 , Term::Font10 = 20 , Term::DoublyUnderlinedOrNotBold = 21 , Term::ResetBold = 22 ,
  Term::ResetDim = 22 , Term::ResetItalic = 23 , Term::ResetUnderline = 24 , Term::ResetBlink = 25 ,
  Term::ResetBlinkRapid = 25 , Term::ResetReversed = 27 , Term::ResetConceal = 28 , Term::ResetCrossed = 29 ,
  Term::DefaultForegroundColor = 39 , Term::DefaultBackgroundColor = 49 , Term::Frame = 51 , Term::Encircle = 52 ,
  Term::Overline = 53 , Term::ResetFrame = 54 , Term::ResetEncircle = 54 , Term::ResetOverline = 55 ,
  Term::DefaultUnderlineColor = 59 , Term::BarRight = 60 , Term::DoubleBarRight = 61 , Term::BarLeft = 62 ,
  Term::DoubleBarLeft = 63 , Term::StressMarking = 64 , Term::ResetBar = 65 , Term::Superscript = 73 ,
  Term::Subscript = 74 , Term::ResetSuperscript = 75 , Term::ResetSubscript = 75
}
 

Functions

std::string Term::style (const Term::Style &style)
 
template<class Stream >
Stream & Term::operator<< (Stream &stream, const Term::Style &style_type)
 
Term::TOstreamTerm::operator<< (Term::TOstream &term, const Term::Style &style_type)