NeKernel dev
Loading...
Searching...
No Matches
rang.h File Reference
#include <algorithm>
#include <atomic>
#include <cstdlib>
#include <cstring>
#include <iostream>

Go to the source code of this file.

Namespaces

namespace  rang
namespace  rang::rang_implementation

Typedefs

template<typename T>
using rang::rang_implementation::enableStd

Enumerations

enum class  rang::style {
  rang::reset = 0 , rang::bold = 1 , rang::dim = 2 , rang::italic = 3 ,
  rang::underline = 4 , rang::blink = 5 , rang::rblink = 6 , rang::reversed = 7 ,
  rang::conceal = 8 , rang::crossed = 9
}
enum class  rang::fg {
  rang::black = 30 , rang::red = 31 , rang::green = 32 , rang::yellow = 33 ,
  rang::blue = 34 , rang::magenta = 35 , rang::cyan = 36 , rang::gray = 37 ,
  rang::reset = 39
}
enum class  rang::bg {
  rang::black = 40 , rang::red = 41 , rang::green = 42 , rang::yellow = 43 ,
  rang::blue = 44 , rang::magenta = 45 , rang::cyan = 46 , rang::gray = 47 ,
  rang::reset = 49
}
enum class  rang::fgB {
  rang::black = 90 , rang::red = 91 , rang::green = 92 , rang::yellow = 93 ,
  rang::blue = 94 , rang::magenta = 95 , rang::cyan = 96 , rang::gray = 97
}
enum class  rang::bgB {
  rang::black = 100 , rang::red = 101 , rang::green = 102 , rang::yellow = 103 ,
  rang::blue = 104 , rang::magenta = 105 , rang::cyan = 106 , rang::gray = 107
}
enum class  rang::control { rang::Off = 0 , rang::Auto = 1 , rang::Force = 2 }
enum class  rang::winTerm { rang::Auto = 0 , rang::Ansi = 1 , rang::Native = 2 }

Functions

std::atomic< control > & rang::rang_implementation::controlMode () noexcept
std::atomic< winTerm > & rang::rang_implementation::winTermMode () noexcept
bool rang::rang_implementation::supportsColor () noexcept
bool rang::rang_implementation::isTerminal (const std::streambuf *osbuf) noexcept
template<typename T>
enableStd< T > rang::rang_implementation::setColor (std::ostream &os, T const value)
template<typename T>
rang_implementation::enableStd< T > rang::operator<< (std::ostream &os, const T value)
void rang::setWinTermMode (const rang::winTerm value) noexcept
void rang::setControlMode (const control value) noexcept