the terminal behind a file descriptor: its presence, its raw mode and its background colour
More...
#include <dx_ansi_colors.h>
|
| static uint8_t | brightness (uint32_t color) |
| static uint32_t | color (bool background) |
| | the terminal's foreground or background colour as 0xRRGGBB, asked with OSC 10/11 and read back from the answer; 0 where nothing answers within 150 ms
|
| static bool | dark () |
| | the terminal's background, probed once at the first themed output
|
| static void | raw (bool enable) |
| | line buffering and echo off, so a terminal's answer can be read back character by character
|
the terminal behind a file descriptor: its presence, its raw mode and its background colour
◆ brightness()
◆ color()
| uint32_t dx::tty::color |
( |
bool | background | ) |
|
|
inlinestatic |
the terminal's foreground or background colour as 0xRRGGBB, asked with OSC 10/11 and read back from the answer; 0 where nothing answers within 150 ms
◆ dark()
the terminal's background, probed once at the first themed output
◆ operator()()
| bool dx::tty::operator() |
( |
uint32_t | fd | ) |
const |
|
inlinenoexcept |
true where the descriptor is a terminal
◆ raw()
| void dx::tty::raw |
( |
bool | enable | ) |
|
|
inlinestatic |
line buffering and echo off, so a terminal's answer can be read back character by character
◆ headless
| bool dx::tty::headless {} |
|
inlinestatic |
The documentation for this struct was generated from the following file: