GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
display.h
Go to the documentation of this file.
1 /*!
2  * \file display.h
3  * \brief Defines useful display constants
4  * \author Antonio Ramos, 2018. antonio.ramos(at)cttc.es
5  *
6  * -----------------------------------------------------------------------------
7  *
8  * Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
9  *
10  * GNSS-SDR is a software defined Global Navigation
11  * Satellite Systems receiver
12  *
13  * This file is part of GNSS-SDR.
14  *
15  * SPDX-License-Identifier: GPL-3.0-or-later
16  *
17  * -----------------------------------------------------------------------------
18  */
19 
20 #ifndef GNSS_SDR_DISPLAY_H
21 #define GNSS_SDR_DISPLAY_H
22 
23 #include <string>
24 
25 #ifndef NO_DISPLAY_COLORS
26 #define DISPLAY_COLORS 1
27 #endif
28 
29 
30 #ifdef DISPLAY_COLORS
31 
32 const std::string TEXT_RESET = "\033[0m";
33 const std::string TEXT_BLACK = "\033[30m";
34 const std::string TEXT_RED = "\033[31m";
35 const std::string TEXT_GREEN = "\033[32m";
36 const std::string TEXT_YELLOW = "\033[33m";
37 const std::string TEXT_BLUE = "\033[34m";
38 const std::string TEXT_MAGENTA = "\033[35m";
39 const std::string TEXT_CYAN = "\033[36m";
40 const std::string TEXT_WHITE = "\033[37m";
41 const std::string TEXT_BOLD_BLACK = "\033[1m\033[30m";
42 const std::string TEXT_BOLD_RED = "\033[1m\033[31m";
43 const std::string TEXT_BOLD_GREEN = "\033[1m\033[32m";
44 const std::string TEXT_BOLD_YELLOW = "\033[1m\033[33m";
45 const std::string TEXT_BOLD_BLUE = "\033[1m\033[34m";
46 const std::string TEXT_BOLD_MAGENTA = "\033[1m\033[35m";
47 const std::string TEXT_BOLD_CYAN = "\033[1m\033[36m";
48 const std::string TEXT_BOLD_WHITE = "\033[1m\033[37m";
49 
50 #else
51 
52 const std::string TEXT_RESET = "";
53 const std::string TEXT_BLACK = "";
54 const std::string TEXT_RED = "";
55 const std::string TEXT_GREEN = "";
56 const std::string TEXT_YELLOW = "";
57 const std::string TEXT_BLUE = "";
58 const std::string TEXT_MAGENTA = "";
59 const std::string TEXT_CYAN = "";
60 const std::string TEXT_WHITE = "";
61 const std::string TEXT_BOLD_BLACK = "";
62 const std::string TEXT_BOLD_RED = "";
63 const std::string TEXT_BOLD_GREEN = "";
64 const std::string TEXT_BOLD_YELLOW = "";
65 const std::string TEXT_BOLD_BLUE = "";
66 const std::string TEXT_BOLD_MAGENTA = "";
67 const std::string TEXT_BOLD_CYAN = "";
68 const std::string TEXT_BOLD_WHITE = "";
69 
70 #endif // DISPLAY_COLORS
71 
72 #endif // GNSS_SDR_DISPLAY_H