gnss-sdr/src/core/system_parameters/display.h

79 lines
2.3 KiB
C
Raw Permalink Normal View History

2018-02-23 15:17:51 +00:00
/*!
* \file display.h
* \brief Defines useful display constants
* \author Antonio Ramos, 2018. antonio.ramos(at)cttc.es
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
2018-02-23 15:17:51 +00:00
*
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
2018-02-23 15:17:51 +00:00
* This file is part of GNSS-SDR.
*
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
* SPDX-License-Identifier: GPL-3.0-or-later
2018-02-23 15:17:51 +00:00
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
2018-02-23 15:17:51 +00:00
*/
#ifndef GNSS_SDR_DISPLAY_H
#define GNSS_SDR_DISPLAY_H
2018-02-23 15:17:51 +00:00
2018-04-03 21:22:20 +00:00
#include <string>
/** \addtogroup Core
* \{ */
/** \addtogroup System_Parameters
* \{ */
2018-04-03 21:22:20 +00:00
#ifndef NO_DISPLAY_COLORS
#define DISPLAY_COLORS 1
#endif
2018-02-23 15:17:51 +00:00
#ifdef DISPLAY_COLORS
2018-04-03 21:22:20 +00:00
const std::string TEXT_RESET = "\033[0m";
const std::string TEXT_BLACK = "\033[30m";
const std::string TEXT_RED = "\033[31m";
const std::string TEXT_GREEN = "\033[32m";
const std::string TEXT_YELLOW = "\033[33m";
const std::string TEXT_BLUE = "\033[34m";
const std::string TEXT_MAGENTA = "\033[35m";
const std::string TEXT_CYAN = "\033[36m";
const std::string TEXT_WHITE = "\033[37m";
const std::string TEXT_BOLD_BLACK = "\033[1m\033[30m";
const std::string TEXT_BOLD_RED = "\033[1m\033[31m";
const std::string TEXT_BOLD_GREEN = "\033[1m\033[32m";
const std::string TEXT_BOLD_YELLOW = "\033[1m\033[33m";
const std::string TEXT_BOLD_BLUE = "\033[1m\033[34m";
2018-02-23 15:17:51 +00:00
const std::string TEXT_BOLD_MAGENTA = "\033[1m\033[35m";
2018-04-03 21:22:20 +00:00
const std::string TEXT_BOLD_CYAN = "\033[1m\033[36m";
const std::string TEXT_BOLD_WHITE = "\033[1m\033[37m";
2018-02-23 15:17:51 +00:00
#else
2018-04-03 21:22:20 +00:00
const std::string TEXT_RESET = "";
const std::string TEXT_BLACK = "";
const std::string TEXT_RED = "";
const std::string TEXT_GREEN = "";
const std::string TEXT_YELLOW = "";
const std::string TEXT_BLUE = "";
const std::string TEXT_MAGENTA = "";
const std::string TEXT_CYAN = "";
const std::string TEXT_WHITE = "";
const std::string TEXT_BOLD_BLACK = "";
const std::string TEXT_BOLD_RED = "";
const std::string TEXT_BOLD_GREEN = "";
const std::string TEXT_BOLD_YELLOW = "";
const std::string TEXT_BOLD_BLUE = "";
2018-02-23 15:17:51 +00:00
const std::string TEXT_BOLD_MAGENTA = "";
2018-04-03 21:22:20 +00:00
const std::string TEXT_BOLD_CYAN = "";
const std::string TEXT_BOLD_WHITE = "";
2018-02-23 15:17:51 +00:00
2020-01-26 21:33:03 +00:00
#endif // DISPLAY_COLORS
/** \} */
/** \} */
#endif // GNSS_SDR_DISPLAY_H