Colour Debugging. More...
#include "config.h"
#include <stdio.h>
#include "mutt/lib.h"
#include "gui/lib.h"
#include "debug.h"
#include "pager/lib.h"
#include "attr.h"
#include "curses2.h"
#include "dump.h"
#include "pager/private_data.h"
Go to the source code of this file.
Functions | |
const char * | color_log_color (color_t fg, color_t bg) |
Get a colourful string to represent a colour in the log. | |
void | ansi_colors_dump (struct Buffer *buf) |
Dump all the ANSI colours. | |
void | curses_color_dump (struct CursesColor *cc, const char *prefix) |
Log one Curses colour. | |
void | curses_colors_dump (struct Buffer *buf) |
Dump all the Curses colours. | |
void | merged_colors_dump (struct Buffer *buf) |
Dump all the Merged colours. | |
Variables | |
struct AttrColorList | MergedColors |
Array of user colours. | |
struct CursesColorList | CursesColors |
List of all Curses colours. | |
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.
Get a colourful string to represent a colour in the log.
fg | Foreground colour |
bg | Background colour |
ptr | Generated string |
Definition at line 51 of file debug.c.
void ansi_colors_dump | ( | struct Buffer * | buf | ) |
Dump all the ANSI colours.
buf | Buffer for result |
Definition at line 84 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 122 of file debug.c.
void curses_colors_dump | ( | struct Buffer * | buf | ) |
Dump all the Curses colours.
buf | Buffer for result |
Definition at line 144 of file debug.c.
void merged_colors_dump | ( | struct Buffer * | buf | ) |
Dump all the Merged colours.
buf | Buffer for result |
Definition at line 177 of file debug.c.
|
extern |