|
FE 0.9.0
Header-only C++ frontend library
|
#include <cstdlib>#include <cstring>#include <atomic>#include <iostream>#include <ostream>#include <string_view>#include <unistd.h>#include "fe/assert.h"#include "fe/format.h"Go to the source code of this file.
Namespaces | |
| namespace | fe |
| namespace | fe::term |
| Lightweight stream-based terminal colors for diagnostics and CLI output. | |
Enumerations | |
| enum class | fe::term::Mode { fe::term::Auto , fe::term::Never , fe::term::Always } |
| Controls whether color escape sequences are emitted. More... | |
| enum class | fe::term::FG { fe::term::Black , fe::term::Red , fe::term::Green , fe::term::Yellow , fe::term::Blue , fe::term::Magenta , fe::term::Cyan , fe::term::Gray , fe::term::Grey = Gray , fe::term::Reset } |
| Foreground colors that can be streamed into an std::ostream. More... | |
Functions | |
| Mode | fe::term::mode () noexcept |
| Returns the current terminal color mode. | |
| void | fe::term::set_mode (Mode m) noexcept |
| Overrides the current terminal color mode. | |
| std::ostream & | fe::term::operator<< (std::ostream &os, FG color) |
Streams the ANSI escape sequence for color when colors are enabled for os. | |