llvm/lldb/include/lldb/Utility/AnsiTerminal.h

//===---------------------AnsiTerminal.h ------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLDB_UTILITY_ANSITERMINAL_H
#define LLDB_UTILITY_ANSITERMINAL_H

#define ANSI_FG_COLOR_BLACK
#define ANSI_FG_COLOR_RED
#define ANSI_FG_COLOR_GREEN
#define ANSI_FG_COLOR_YELLOW
#define ANSI_FG_COLOR_BLUE
#define ANSI_FG_COLOR_PURPLE
#define ANSI_FG_COLOR_CYAN
#define ANSI_FG_COLOR_WHITE

#define ANSI_FG_COLOR_BRIGHT_BLACK
#define ANSI_FG_COLOR_BRIGHT_RED
#define ANSI_FG_COLOR_BRIGHT_GREEN
#define ANSI_FG_COLOR_BRIGHT_YELLOW
#define ANSI_FG_COLOR_BRIGHT_BLUE
#define ANSI_FG_COLOR_BRIGHT_PURPLE
#define ANSI_FG_COLOR_BRIGHT_CYAN
#define ANSI_FG_COLOR_BRIGHT_WHITE

#define ANSI_BG_COLOR_BLACK
#define ANSI_BG_COLOR_RED
#define ANSI_BG_COLOR_GREEN
#define ANSI_BG_COLOR_YELLOW
#define ANSI_BG_COLOR_BLUE
#define ANSI_BG_COLOR_PURPLE
#define ANSI_BG_COLOR_CYAN
#define ANSI_BG_COLOR_WHITE

#define ANSI_BG_COLOR_BRIGHT_BLACK
#define ANSI_BG_COLOR_BRIGHT_RED
#define ANSI_BG_COLOR_BRIGHT_GREEN
#define ANSI_BG_COLOR_BRIGHT_YELLOW
#define ANSI_BG_COLOR_BRIGHT_BLUE
#define ANSI_BG_COLOR_BRIGHT_PURPLE
#define ANSI_BG_COLOR_BRIGHT_CYAN
#define ANSI_BG_COLOR_BRIGHT_WHITE

#define ANSI_SPECIAL_FRAMED
#define ANSI_SPECIAL_ENCIRCLED

#define ANSI_CTRL_NORMAL
#define ANSI_CTRL_BOLD
#define ANSI_CTRL_FAINT
#define ANSI_CTRL_ITALIC
#define ANSI_CTRL_UNDERLINE
#define ANSI_CTRL_SLOW_BLINK
#define ANSI_CTRL_FAST_BLINK
#define ANSI_CTRL_IMAGE_NEGATIVE
#define ANSI_CTRL_CONCEAL
#define ANSI_CTRL_CROSSED_OUT

#define ANSI_ESC_START
#define ANSI_ESC_END

#define ANSI_STR(s)
#define ANSI_DEF_STR(s)

#define ANSI_ESCAPE1(s)

#define ANSI_1_CTRL(ctrl1)
#define ANSI_2_CTRL(ctrl1, ctrl2)

#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"

#include <string>

namespace lldb_private {

namespace ansi {

inline std::string FormatAnsiTerminalCodes(llvm::StringRef format,
                                           bool do_color = true) {}
}
} // namespace lldb_private

#endif