Colour Debugging. More...
#include "config.h"
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "gui/lib.h"
#include "lib.h"
Go to the source code of this file.
Functions | |
int | color_debug (enum LogLevel level, const char *format,...) |
Write to the log file. More... | |
const char * | color_debug_log_color_attrs (int fg, int bg, int attrs) |
Get a colourful string to represent a colour in the log. More... | |
const char * | color_debug_log_color (int fg, int bg) |
Get a colourful string to represent a colour in the log. More... | |
const char * | color_debug_log_attrs (int attrs) |
Get a string to represent some attributes in the log. More... | |
const char * | color_debug_log_attrs_list (int attrs) |
Get a string to represent some attributes in the log. More... | |
const char * | color_debug_log_name (char *buf, int buflen, int color) |
Get a string to represent a colour name. More... | |
void | attr_color_dump (struct AttrColor *ac, const char *prefix) |
Dump an Attr Colour to the log. More... | |
void | attr_color_list_dump (struct AttrColorList *acl, const char *title) |
Dump all the Attr Colours to the log. More... | |
void | curses_color_dump (struct CursesColor *cc, const char *prefix) |
Log one Curses colour. More... | |
void | curses_colors_dump (void) |
Log all the Curses colours. More... | |
void | quoted_color_dump (struct AttrColor *ac, int q_level, const char *prefix) |
Log a Quoted colour. More... | |
void | quoted_color_list_dump (void) |
Log all the Quoted colours. More... | |
void | regex_color_dump (struct RegexColor *rcol, const char *prefix) |
Dump a Regex colour to the log. More... | |
void | regex_color_list_dump (const char *name, struct RegexColorList *rcl) |
Dump one Regex's colours to the log. More... | |
void | regex_colors_dump_all (void) |
Dump all the Regex colours to the log. More... | |
void | simple_color_dump (enum ColorId cid, const char *prefix) |
Dump a Simple colour to the log. More... | |
void | simple_colors_dump (bool force) |
Dump all the Simple colours to the log. More... | |
void | merged_colors_dump (void) |
Dump all the Merged colours to the log. More... | |
Colour Debugging.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file debug.c.
int color_debug | ( | enum LogLevel | level, |
const char * | format, | ||
... | |||
) |
Write to the log file.
level | Logging level, e.g. LL_DEBUG1 |
format | Printf format string |
... | Args for printf |
num | Number of characters printed |
Definition at line 44 of file debug.c.
const char * color_debug_log_color_attrs | ( | int | fg, |
int | bg, | ||
int | attrs | ||
) |
Get a colourful string to represent a colour in the log.
fg | Foreground colour |
bg | Background colour |
attrs | Attributes, e.g. A_UNDERLINE |
ptr | Generated string |
Definition at line 67 of file debug.c.
const char * color_debug_log_color | ( | int | fg, |
int | bg | ||
) |
Get a colourful string to represent a colour in the log.
fg | Foreground colour |
bg | Background colour |
ptr | Generated string |
Definition at line 103 of file debug.c.
const char * color_debug_log_attrs | ( | int | attrs | ) |
Get a string to represent some attributes in the log.
attrs | Attributes, e.g. A_UNDERLINE |
ptr | Generated string |
Definition at line 117 of file debug.c.
const char * color_debug_log_attrs_list | ( | int | attrs | ) |
Get a string to represent some attributes in the log.
attrs | Attributes, e.g. A_UNDERLINE |
ptr | Generated string |
Definition at line 150 of file debug.c.
const char * color_debug_log_name | ( | char * | buf, |
int | buflen, | ||
int | color | ||
) |
Get a string to represent a colour name.
ptr | Generated string |
Definition at line 181 of file debug.c.
void attr_color_dump | ( | struct AttrColor * | ac, |
const char * | prefix | ||
) |
Dump an Attr Colour to the log.
ac | AttrColor to dump |
prefix | prefix for the log block |
Definition at line 199 of file debug.c.
void attr_color_list_dump | ( | struct AttrColorList * | acl, |
const char * | title | ||
) |
Dump all the Attr Colours to the log.
acl | List of Attr colours |
title | Title for the log block |
Definition at line 225 of file debug.c.
void curses_color_dump | ( | struct CursesColor * | cc, |
const char * | prefix | ||
) |
Log one Curses colour.
cc | CursesColor to log |
prefix | Prefix for the log line |
Definition at line 254 of file debug.c.
void curses_colors_dump | ( | void | ) |
Log all the Curses colours.
Definition at line 267 of file debug.c.
void quoted_color_dump | ( | struct AttrColor * | ac, |
int | q_level, | ||
const char * | prefix | ||
) |
void quoted_color_list_dump | ( | void | ) |
Log all the Quoted colours.
Definition at line 312 of file debug.c.
void regex_color_dump | ( | struct RegexColor * | rcol, |
const char * | prefix | ||
) |
Dump a Regex colour to the log.
rcol | Regex to dump |
prefix | Prefix for the log line |
Definition at line 327 of file debug.c.
void regex_color_list_dump | ( | const char * | name, |
struct RegexColorList * | rcl | ||
) |
Dump one Regex's colours to the log.
name | Name of the Regex |
rcl | RegexColorList to dump |
Definition at line 354 of file debug.c.
void regex_colors_dump_all | ( | void | ) |
Dump all the Regex colours to the log.
Definition at line 380 of file debug.c.
void simple_color_dump | ( | enum ColorId | cid, |
const char * | prefix | ||
) |
Dump a Simple colour to the log.
cid | Colour Id, e.g. MT_COLOR_UNDERLINE |
prefix | Prefix for the log line |
Definition at line 404 of file debug.c.
void simple_colors_dump | ( | bool | force | ) |
Dump all the Simple colours to the log.
force | If true, list unset colours |
Definition at line 439 of file debug.c.
void merged_colors_dump | ( | void | ) |
Dump all the Merged colours to the log.
Definition at line 456 of file debug.c.