KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
color_utilities.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Vicente Mataix Ferrandiz
11 //
12 
13 #pragma once
14 
15 /* FOREGROUND */
16 #if !defined(_WIN32)
17  #define RST "\x1B[0m"
18  #define KRED "\x1B[31m"
19  #define KGRN "\x1B[32m"
20  #define KYEL "\x1B[33m"
21  #define KBLU "\x1B[34m"
22  #define KMAG "\x1B[35m"
23  #define KCYN "\x1B[36m"
24  #define KWHT "\x1B[37m"
25 
26  #define FRED(x) KRED x RST
27  #define FGRN(x) KGRN x RST
28  #define FYEL(x) KYEL x RST
29  #define FBLU(x) KBLU x RST
30  #define FMAG(x) KMAG x RST
31  #define FCYN(x) KCYN x RST
32  #define FWHT(x) KWHT x RST
33 
34  #define BOLDFONT(x) "\x1B[1m" x RST
35  #define FAINTFONT(x) "\x1B[2m" x RST
36  #define ITAFONT(x) "\x1B[3m" x RST
37  #define UNDL(x) "\x1B[4m" x RST
38  #define INVFONT(x) "\x1B[7m" x RST
39  #define STRFONT(x) "\x1B[9m" x RST
40 #else
41  #define RST ""
42  #define KRED ""
43  #define KGRN ""
44  #define KYEL ""
45  #define KBLU ""
46  #define KMAG ""
47  #define KCYN ""
48  #define KWHT ""
49 
50  #define FRED(x) KRED x RST
51  #define FGRN(x) KGRN x RST
52  #define FYEL(x) KYEL x RST
53  #define FBLU(x) KBLU x RST
54  #define FMAG(x) KMAG x RST
55  #define FCYN(x) KCYN x RST
56  #define FWHT(x) KWHT x RST
57 
58  #define BOLDFONT(x) "" x RST
59  #define FAINTFONT(x) "" x RST
60  #define ITAFONT(x) "" x RST
61  #define UNDL(x) "" x RST
62  #define INVFONT(x) "" x RST
63  #define STRFONT(x) "" x RST
64 #endif