LLDB mainline
Functions
lldb_private::ansi Namespace Reference

Functions

std::string FormatAnsiTerminalCodes (llvm::StringRef format, bool do_color=true)
 

Function Documentation

◆ FormatAnsiTerminalCodes()

std::string lldb_private::ansi::FormatAnsiTerminalCodes ( llvm::StringRef  format,
bool  do_color = true 
)
inline

Definition at line 83 of file AnsiTerminal.h.

References _TO_STR, ANSI_BG_COLOR_BLACK, ANSI_BG_COLOR_BLUE, ANSI_BG_COLOR_BRIGHT_BLACK, ANSI_BG_COLOR_BRIGHT_BLUE, ANSI_BG_COLOR_BRIGHT_CYAN, ANSI_BG_COLOR_BRIGHT_GREEN, ANSI_BG_COLOR_BRIGHT_PURPLE, ANSI_BG_COLOR_BRIGHT_RED, ANSI_BG_COLOR_BRIGHT_WHITE, ANSI_BG_COLOR_BRIGHT_YELLOW, ANSI_BG_COLOR_CYAN, ANSI_BG_COLOR_GREEN, ANSI_BG_COLOR_PURPLE, ANSI_BG_COLOR_RED, ANSI_BG_COLOR_WHITE, ANSI_BG_COLOR_YELLOW, ANSI_CTRL_BOLD, ANSI_CTRL_CONCEAL, ANSI_CTRL_CROSSED_OUT, ANSI_CTRL_FAINT, ANSI_CTRL_FAST_BLINK, ANSI_CTRL_IMAGE_NEGATIVE, ANSI_CTRL_ITALIC, ANSI_CTRL_NORMAL, ANSI_CTRL_SLOW_BLINK, ANSI_CTRL_UNDERLINE, ANSI_ESC_END, ANSI_ESC_START, ANSI_FG_COLOR_BLACK, ANSI_FG_COLOR_BLUE, ANSI_FG_COLOR_BRIGHT_BLACK, ANSI_FG_COLOR_BRIGHT_BLUE, ANSI_FG_COLOR_BRIGHT_CYAN, ANSI_FG_COLOR_BRIGHT_GREEN, ANSI_FG_COLOR_BRIGHT_PURPLE, ANSI_FG_COLOR_BRIGHT_RED, ANSI_FG_COLOR_BRIGHT_WHITE, ANSI_FG_COLOR_BRIGHT_YELLOW, ANSI_FG_COLOR_CYAN, ANSI_FG_COLOR_GREEN, ANSI_FG_COLOR_PURPLE, ANSI_FG_COLOR_RED, ANSI_FG_COLOR_WHITE, and ANSI_FG_COLOR_YELLOW.

Referenced by lldb_private::SourceManager::DisplaySourceLinesWithLineNumbersUsingLastFile(), lldb_private::Debugger::HandleProgressEvent(), lldb_private::IOHandlerEditline::IOHandlerEditline(), lldb_private::Stream::PutCStringColorHighlighted(), lldb_private::HighlightStyle::ColorStyle::Set(), lldb_private::Debugger::SetPrompt(), lldb_private::IOHandlerEditline::SetPrompt(), and lldb_private::Debugger::SetPropertyValue().