NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_COLOR_DEBUG_H
24
#define MUTT_COLOR_DEBUG_H
25
26
#include "
mutt/lib.h
"
27
#include "
curses2.h
"
28
29
#ifdef USE_DEBUG_COLOR
30
31
const
char
*
color_log_color
(
color_t
fg,
color_t
bg);
32
33
void
curses_color_dump
(
struct
CursesColor
*cc,
const
char
*prefix);
34
35
void
ansi_colors_dump
(
struct
Buffer
*buf);
36
void
curses_colors_dump
(
struct
Buffer
*buf);
37
void
merged_colors_dump
(
struct
Buffer
*buf);
38
39
#define color_debug(LEVEL, ...) MuttLogger(0, __FILE__, __LINE__, __func__, LEVEL, __VA_ARGS__)
40
41
#else
42
43
static
inline
const
char
*
color_log_color
(
color_t
fg,
color_t
bg) {
return
""
; }
44
45
static
inline
void
curses_color_dump
(
struct
CursesColor
*cc,
const
char
*prefix) {}
46
47
static
inline
void
ansi_colors_dump
(
struct
Buffer
*buf) {}
48
static
inline
void
curses_colors_dump
(
struct
Buffer
*buf) {}
49
static
inline
void
merged_colors_dump
(
struct
Buffer
*buf) {}
50
51
static
inline
int
color_debug
(
enum
LogLevel
level,
const
char
*format, ...) {
return
0; }
52
53
#endif
54
55
#endif
/* MUTT_COLOR_DEBUG_H */
curses2.h
Curses Colour.
color_t
int32_t color_t
Type for 24-bit colour value.
Definition
curses2.h:30
curses_color_dump
static void curses_color_dump(struct CursesColor *cc, const char *prefix)
Definition
debug.h:45
curses_colors_dump
static void curses_colors_dump(struct Buffer *buf)
Definition
debug.h:48
merged_colors_dump
static void merged_colors_dump(struct Buffer *buf)
Definition
debug.h:49
ansi_colors_dump
static void ansi_colors_dump(struct Buffer *buf)
Definition
debug.h:47
color_debug
static int color_debug(enum LogLevel level, const char *format,...)
Definition
debug.h:51
color_log_color
static const char * color_log_color(color_t fg, color_t bg)
Definition
debug.h:43
LogLevel
LogLevel
Names for the Logging Levels.
Definition
logging2.h:40
lib.h
Convenience wrapper for the library headers.
Buffer
String manipulation buffer.
Definition
buffer.h:36
CursesColor
Colour in the ncurses palette.
Definition
curses2.h:40