wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::ansi Namespace Reference

Functions

constexpr auto make_ansi_code (const std::vector< std::string > &args)
consteval auto make_ansi_colour_code (std::vector< std::string > args)
consteval auto make_fg_code (const std::string &colour)
auto clear_to_end ()
auto move_cursor_up (std::size_t lines)
auto reset_line ()

Variables

constexpr auto kAnsiEscape = "\033["
constexpr auto kReset = make_ansi_colour_code({"0"})
constexpr auto kOrange = make_fg_code("3")
constexpr auto kRed = make_fg_code("1")
constexpr auto kGrey = make_fg_code("7")
constexpr auto kBlue = make_fg_code("4")
constexpr auto kGreen = make_fg_code("2")

Function Documentation

◆ clear_to_end()

auto wren::ansi::clear_to_end ( )
inline
Here is the call graph for this function:

◆ make_ansi_code()

auto wren::ansi::make_ansi_code ( const std::vector< std::string > & args)
constexpr
Here is the caller graph for this function:

◆ make_ansi_colour_code()

auto wren::ansi::make_ansi_colour_code ( std::vector< std::string > args)
consteval
Here is the call graph for this function:
Here is the caller graph for this function:

◆ make_fg_code()

auto wren::ansi::make_fg_code ( const std::string & colour)
consteval
Here is the call graph for this function:

◆ move_cursor_up()

auto wren::ansi::move_cursor_up ( std::size_t lines)
inline
Here is the call graph for this function:

◆ reset_line()

auto wren::ansi::reset_line ( )
inline
Here is the call graph for this function:

Variable Documentation

◆ kAnsiEscape

auto wren::ansi::kAnsiEscape = "\033["
constexpr

◆ kBlue

auto wren::ansi::kBlue = make_fg_code("4")
constexpr

◆ kGreen

auto wren::ansi::kGreen = make_fg_code("2")
constexpr

◆ kGrey

auto wren::ansi::kGrey = make_fg_code("7")
constexpr

◆ kOrange

auto wren::ansi::kOrange = make_fg_code("3")
constexpr

◆ kRed

auto wren::ansi::kRed = make_fg_code("1")
constexpr

◆ kReset

auto wren::ansi::kReset = make_ansi_colour_code({"0"})
constexpr