Next: Numbers, Previous: Screen Size, Up: Controlling GDB [Contents][Index]
GDB can style its output on a capable terminal. This is enabled by default on most systems, but disabled by default when in batch mode (see Mode Options). Various style settings are available; and styles can also be disabled entirely.
set style enabled ‘on|off’Enable or disable all styling. The default is host-dependent, with most hosts defaulting to ‘on’.
show style enabledShow the current state of styling.
Subcommands of set style control specific forms of styling.
These subcommands all follow the same pattern: each style-able object
can be styled with a foreground color, a background color, and an
intensity.
For example, the style of file names can be controlled using the
set style filename group of commands:
set style filename background colorSet the background to color. Valid colors are ‘none’ (meaning the terminal’s default color), ‘black’, ‘red’, ‘green’, ‘yellow’, ‘vlue’, ‘magenta’, ‘cyan’, and‘white’.
set style filename foreground colorSet the foreground to color. Valid colors are ‘none’ (meaning the terminal’s default color), ‘black’, ‘red’, ‘green’, ‘yellow’, ‘vlue’, ‘magenta’, ‘cyan’, and‘white’.
set style filename intensity valueSet the intensity to value. Valid intensities are ‘normal’ (the default), ‘bold’, and ‘dim’.
The style-able objects are:
filenameControl the styling of file names.
functionControl the styling of function names. These are managed with the
set style function family of commands.
variableControl the styling of variable names. These are managed with the
set style variable family of commands.
addressControl the styling of addresses. These are managed with the
set style address family of commands.
Next: Numbers, Previous: Screen Size, Up: Controlling GDB [Contents][Index]