29#ifndef NOMLIB_CORE_UNIX_CONSOLE_OUTPUT_HPP
30#define NOMLIB_CORE_UNIX_CONSOLE_OUTPUT_HPP
34#include "nomlib/config.hpp"
36#include "nomlib/core/ConsoleOutput.hpp"
70 const std::string COLOR_FG_RED =
"\033[31m";
72 const std::string COLOR_FG_BLUE =
"\033[34m";
73 const std::string COLOR_FG_YELLOW =
"\033[93m";
74 const std::string COLOR_FG_MAGENTA =
"\033[35m";
76 const std::string COLOR_FG_GREEN =
"\033[0;32m";
77 const std::string COLOR_FG_ORANGE =
"\033[0;33m";
78 const std::string COLOR_FG_PURPLE =
"\033[0;35m";
80 const std::string COLOR_STYLE_BOLD =
"\e[1;1m";
81 const std::string COLOR_STYLE_UNDERLINED =
"\e[1;4m";
ConsoleOutput()
Default constructor; initializes the output stream to use std::cerr (the standard error stream).
ConsoleOutput::Color color() const
Get the last color that was set.
const std::string COLOR_ENDL
Reset colors.
virtual ~UnixConsoleOutput()
Destructor; if a TTY device is detected, an attempt to reset the colors will be made.
void set_color(ConsoleOutput::Color color)
Implements ConsoleOutput::set_color.
void endl()
Implements ConsoleOutput::reset_colors.
bool tty() const
Check to see if we are running inside a TTY device (terminal).
void set_style(uint32 style)
Implements ConsoleOutput::set_style.