Blender  V3.3
BLI_console.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2018 Blender Foundation. All rights reserved. */
3 
4 #pragma once
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
15 /* Format string where one could BLI_snprintf() R, G and B values
16  * and get proper marker to start colored output in the console.
17  */
18 #define TRUECOLOR_ANSI_COLOR_FORMAT "\x1b[38;2;%d;%d;%dm"
19 
20 /* Marker which indicates that colored output is finished. */
21 #define TRUECOLOR_ANSI_COLOR_FINISH "\x1b[0m"
22 
23 #ifdef __cplusplus
24 }
25 #endif