GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
cli-style.c File Reference
#include "defs.h"
#include "cli/cli-cmds.h"
#include "cli/cli-decode.h"
#include "cli/cli-setshow.h"
#include "cli/cli-style.h"
#include "source-cache.h"
#include "observable.h"

Go to the source code of this file.

Functions

cli_style_option file_name_style ("filename", ui_file_style::GREEN)
 
cli_style_option function_name_style ("function", ui_file_style::YELLOW)
 
cli_style_option variable_name_style ("variable", ui_file_style::CYAN)
 
cli_style_option address_style ("address", ui_file_style::BLUE)
 
cli_style_option highlight_style ("highlight", ui_file_style::RED)
 
cli_style_option title_style ("title", ui_file_style::BOLD)
 
cli_style_option tui_border_style ("tui-border", ui_file_style::CYAN)
 
cli_style_option tui_active_border_style ("tui-active-border", ui_file_style::CYAN)
 
cli_style_option metadata_style ("metadata", ui_file_style::DIM)
 
cli_style_option version_style ("version", ui_file_style::MAGENTA, ui_file_style::BOLD)
 
cli_style_option disasm_mnemonic_style ("mnemonic", ui_file_style::GREEN)
 
cli_style_option disasm_register_style ("register", ui_file_style::RED)
 
cli_style_option disasm_immediate_style ("immediate", ui_file_style::BLUE)
 
cli_style_option disasm_comment_style ("comment", ui_file_style::WHITE, ui_file_style::DIM)
 
static int color_number (const char *color)
 
static void do_show (const char *what, struct ui_file *file, struct cmd_list_element *cmd, const char *value)
 
static void set_style_enabled (const char *args, int from_tty, struct cmd_list_element *c)
 
static void show_style_enabled (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_style_sources (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
static void show_style_disassembler (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
 
void _initialize_cli_style ()
 

Variables

bool cli_styling = true
 
bool source_styling = true
 
bool disassembler_styling = true
 
static const char *const cli_colors []
 
static const char *const cli_intensities []
 
cmd_list_elementstyle_set_list
 
cmd_list_elementstyle_show_list
 
static cmd_list_elementstyle_disasm_set_list
 
static cmd_list_elementstyle_disasm_show_list
 

Function Documentation

◆ _initialize_cli_style()

void _initialize_cli_style ( )

Definition at line 351 of file cli-style.c.

Referenced by initialize_all_files().

◆ address_style()

cli_style_option address_style ( "address" ,
ui_file_style::BLUE  )

◆ color_number()

static int color_number ( const char * color)
static

Definition at line 156 of file cli-style.c.

References cli_colors.

Referenced by cli_style_option::style().

◆ disasm_comment_style()

cli_style_option disasm_comment_style ( "comment" ,
ui_file_style::WHITE ,
ui_file_style::DIM  )

◆ disasm_immediate_style()

cli_style_option disasm_immediate_style ( "immediate" ,
ui_file_style::BLUE  )

◆ disasm_mnemonic_style()

cli_style_option disasm_mnemonic_style ( "mnemonic" ,
ui_file_style::GREEN  )

◆ disasm_register_style()

cli_style_option disasm_register_style ( "register" ,
ui_file_style::RED  )

◆ do_show()

static void do_show ( const char * what,
struct ui_file * file,
struct cmd_list_element * cmd,
const char * value )
static

◆ file_name_style()

cli_style_option file_name_style ( "filename" ,
ui_file_style::GREEN  )

◆ function_name_style()

cli_style_option function_name_style ( "function" ,
ui_file_style::YELLOW  )

◆ highlight_style()

cli_style_option highlight_style ( "highlight" ,
ui_file_style::RED  )

◆ metadata_style()

cli_style_option metadata_style ( "metadata" ,
ui_file_style::DIM  )

◆ set_style_enabled()

static void set_style_enabled ( const char * args,
int from_tty,
struct cmd_list_element * c )
static

◆ show_style_disassembler()

static void show_style_disassembler ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 340 of file cli-style.c.

References disassembler_styling, and gdb_printf().

◆ show_style_enabled()

static void show_style_enabled ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 318 of file cli-style.c.

References cli_styling, and gdb_printf().

◆ show_style_sources()

static void show_style_sources ( struct ui_file * file,
int from_tty,
struct cmd_list_element * c,
const char * value )
static

Definition at line 328 of file cli-style.c.

References gdb_printf(), and source_styling.

◆ title_style()

cli_style_option title_style ( "title" ,
ui_file_style::BOLD  )

◆ tui_active_border_style()

cli_style_option tui_active_border_style ( "tui-active-border" ,
ui_file_style::CYAN  )

◆ tui_border_style()

cli_style_option tui_border_style ( "tui-border" ,
ui_file_style::CYAN  )

◆ variable_name_style()

cli_style_option variable_name_style ( "variable" ,
ui_file_style::CYAN  )

◆ version_style()

cli_style_option version_style ( "version" ,
ui_file_style::MAGENTA ,
ui_file_style::BOLD  )

Variable Documentation

◆ cli_colors

const char* const cli_colors[]
static
Initial value:
= {
"none",
"black",
"red",
"green",
"yellow",
"blue",
"magenta",
"cyan",
"white",
nullptr
}

Definition at line 47 of file cli-style.c.

Referenced by cli_style_option::add_setshow_commands(), and color_number().

◆ cli_intensities

const char* const cli_intensities[]
static
Initial value:
= {
"normal",
"bold",
"dim",
nullptr
}

Definition at line 62 of file cli-style.c.

Referenced by cli_style_option::add_setshow_commands(), and cli_style_option::style().

◆ cli_styling

bool cli_styling = true

Definition at line 33 of file cli-style.c.

Referenced by box_win(), captured_main_1(), show_style_enabled(), and term_cli_styling().

◆ disassembler_styling

bool disassembler_styling = true

◆ source_styling

bool source_styling = true

Definition at line 39 of file cli-style.c.

Referenced by source_cache::ensure(), show_style_sources(), and tui_disassemble().

◆ style_disasm_set_list

cmd_list_element* style_disasm_set_list
static

Definition at line 304 of file cli-style.c.

◆ style_disasm_show_list

cmd_list_element* style_disasm_show_list
static

Definition at line 308 of file cli-style.c.

◆ style_set_list

cmd_list_element* style_set_list

Definition at line 299 of file cli-style.c.

◆ style_show_list

cmd_list_element* style_show_list

Definition at line 300 of file cli-style.c.