2023-08-15 16:20:26 +02:00
|
|
|
/* SPDX-FileCopyrightText: 2018 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
2018-03-16 12:16:29 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-01-31 14:22:46 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-02-17 22:08:12 +01:00
|
|
|
/** \file
|
|
|
|
* \ingroup bli
|
|
|
|
* \brief Set of utility functions and constants to work with consoles.
|
2018-03-16 12:16:29 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* Format string where one could BLI_snprintf() R, G and B values
|
|
|
|
* and get proper marker to start colored output in the console.
|
|
|
|
*/
|
|
|
|
#define TRUECOLOR_ANSI_COLOR_FORMAT "\x1b[38;2;%d;%d;%dm"
|
|
|
|
|
|
|
|
/* Marker which indicates that colored output is finished. */
|
|
|
|
#define TRUECOLOR_ANSI_COLOR_FINISH "\x1b[0m"
|
|
|
|
|
2019-01-31 14:22:46 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|