dxd - dynax driver framework 3.0.2
cross platform open source driver development framework
Loading...
Searching...
No Matches
dx_ansi_colors.h File Reference
#include "dx_platform.h"
#include <iostream>
#include <termios.h>
Include dependency graph for dx_ansi_colors.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  dx::ansi
 an SGR/OSC control sequence, written only where it is read: every sink below drops it unless stderr is a terminal More...
struct  dx::themed
struct  dx::tty
 the terminal behind a file descriptor: its presence, its raw mode and its background colour More...

Namespaces

namespace  dx
 dynax driver framework interface namespace
namespace  dx::color
 the SGR sequences, by their effect; dx::themed picks between two of them
namespace  dx::color::background
namespace  dx::color::bright
namespace  dx::color::bright::background
namespace  dx::color::fast
namespace  dx::color::slow
namespace  dx::cursor
namespace  dx::erase
namespace  dx::erase::line

Functions

std::string operator +(const std::string& string, const dx::ansi& ansi)
std::string operator +(const std::string& string, const dx::themed& themed)
std::ostream& operator <<(std::ostream& os, const dx::ansi& ansi)
 an escape sequence reaches any stream only while stderr is a terminal - a redirected run stays free of them
std::ostream& operator <<(std::ostream& os, const dx::themed& themed)

Function Documentation

◆ operator +() [1/2]

std::string operator +(const std::string& string, const dx::ansi& ansi)
inline

◆ operator +() [2/2]

std::string operator +(const std::string& string, const dx::themed& themed)
inline
Here is the call graph for this function:

◆ operator <<() [1/2]

std::ostream& operator <<(std::ostream& os, const dx::ansi& ansi)
inline

an escape sequence reaches any stream only while stderr is a terminal - a redirected run stays free of them

◆ operator <<() [2/2]

std::ostream& operator <<(std::ostream& os, const dx::themed& themed)
inline
Here is the call graph for this function: