LLDB mainline
|
Functions | |
std::string | FormatAnsiTerminalCodes (llvm::StringRef format, bool do_color=true) |
std::tuple< llvm::StringRef, llvm::StringRef, llvm::StringRef > | FindNextAnsiSequence (llvm::StringRef str) |
std::string | StripAnsiTerminalCodes (llvm::StringRef str) |
std::string | TrimAndPad (llvm::StringRef str, size_t visible_length, char padding=' ') |
size_t | ColumnWidth (llvm::StringRef str) |
|
inline |
Definition at line 263 of file AnsiTerminal.h.
References StripAnsiTerminalCodes().
Referenced by lldb_private::Editline::CountRowsForLine(), lldb_private::Editline::GetPromptWidth(), lldb_private::Options::OutputFormattedUsageText(), and lldb_private::Editline::PromptForIndex().
|
inline |
Definition at line 179 of file AnsiTerminal.h.
References ANSI_ESC_START, and ANSI_ESC_START_LEN.
Referenced by StripAnsiTerminalCodes(), and TrimAndPad().
|
inline |
Definition at line 86 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::Breakpoint::GetDescription(), lldb_private::Options::HandleOptionCompletion(), lldb_private::IOHandlerEditline::IOHandlerEditline(), lldb_private::Options::OutputFormattedUsageText(), lldb_private::Stream::PutCStringColorHighlighted(), lldb_private::HighlightStyle::ColorStyle::Set(), lldb_private::Debugger::SetPrompt(), lldb_private::IOHandlerEditline::SetPrompt(), lldb_private::Debugger::SetPropertyValue(), and lldb_private::IOHandlerEditline::SetUseColor().
|
inline |
Definition at line 209 of file AnsiTerminal.h.
References FindNextAnsiSequence().
Referenced by ColumnWidth().
|
inline |
Definition at line 219 of file AnsiTerminal.h.
References FindNextAnsiSequence().
Referenced by lldb_private::Statusline::Draw().