diff options
author | Andrei Pikas <gdb@mail.api.win> | 2024-10-05 22:27:44 +0300 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-01-12 13:30:43 -0700 |
commit | 6447969d0ac774b6dec0f95a0d3d27c27d158690 (patch) | |
tree | e9812cfdd956f4c8e89f596b276ddc1c4ad8da45 /gdb/guile/guile-internal.h | |
parent | 338e0b05d8f2dd404eb0015bee31461dfe5ba307 (diff) | |
download | gdb-6447969d0ac774b6dec0f95a0d3d27c27d158690.zip gdb-6447969d0ac774b6dec0f95a0d3d27c27d158690.tar.gz gdb-6447969d0ac774b6dec0f95a0d3d27c27d158690.tar.bz2 |
Add an option with a color type.
Colors can be specified as "none" for terminal's default color, as a name of
one of the eight standard colors of ISO/IEC 6429 "black", "red", "green", etc.,
as an RGB hexadecimal tripplet #RRGGBB for 24-bit TrueColor, or as an
integer from 0 to 255. Integers 0 to 7 are the synonyms for the standard
colors. Integers 8-15 are used for the so-called bright colors from the
aixterm extended 16-color palette. Integers 16-255 are the indexes into xterm
extended 256-color palette (usually 6x6x6 cube plus gray ramp). In
general, 256-color palette is terminal dependent and sometimes can be
changed with OSC 4 sequences, e.g. "\033]4;1;rgb:00/FF/00\033\\".
It is the responsibility of the user to verify that the terminal supports
the specified colors.
PATCH v5 changes: documentation fixed.
PATCH v6 changes: documentation fixed.
PATCH v7 changes: rebase onto master and fixes after review.
PATCH v8 changes: fixes after review.
Diffstat (limited to 'gdb/guile/guile-internal.h')
-rw-r--r-- | gdb/guile/guile-internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/guile/guile-internal.h b/gdb/guile/guile-internal.h index 1057b83..ef7a1d3 100644 --- a/gdb/guile/guile-internal.h +++ b/gdb/guile/guile-internal.h @@ -452,6 +452,14 @@ extern int gdbscm_valid_command_class_p (int command_class); extern char *gdbscm_canonicalize_command_name (const char *name, int want_trailing_space); +/* scm-color.c */ + +extern SCM coscm_scm_from_color (const ui_file_style::color &color); + +extern int coscm_is_color (SCM scm); + +extern const ui_file_style::color & coscm_get_color (SCM color_scm); + /* scm-frame.c */ struct frame_smob; @@ -630,6 +638,7 @@ extern void gdbscm_initialize_arches (void); extern void gdbscm_initialize_auto_load (void); extern void gdbscm_initialize_blocks (void); extern void gdbscm_initialize_breakpoints (void); +extern void gdbscm_initialize_colors (void); extern void gdbscm_initialize_commands (void); extern void gdbscm_initialize_disasm (void); extern void gdbscm_initialize_exceptions (void); |