diff options
author | Tom Tromey <tom@tromey.com> | 2018-09-06 14:44:17 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-12-28 12:49:51 -0700 |
commit | d47032b7ca85852acb1d2bc645f477ffee4373fc (patch) | |
tree | 432269ae8fb2622d3de722493dc222544dba1cfe /gdb/top.c | |
parent | af79b68d7f935799c956b1a40e92a167385b5380 (diff) | |
download | fsf-binutils-gdb-d47032b7ca85852acb1d2bc645f477ffee4373fc.zip fsf-binutils-gdb-d47032b7ca85852acb1d2bc645f477ffee4373fc.tar.gz fsf-binutils-gdb-d47032b7ca85852acb1d2bc645f477ffee4373fc.tar.bz2 |
Style the gdb welcome message
This changes gdb to style the welcome message that is shown by
default. The styling is only done interactively.
gdb/ChangeLog
2018-12-28 Tom Tromey <tom@tromey.com>
* top.c (print_gdb_version): Style gdb version number.
gdb/testsuite/ChangeLog
2018-12-28 Tom Tromey <tom@tromey.com>
* gdb.base/style.exp: Add test for version number styling.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1281,7 +1281,14 @@ print_gdb_version (struct ui_file *stream, bool interactive) program to parse, and is just canonical program name and version number, which starts after last space. */ - fprintf_filtered (stream, "GNU gdb %s%s\n", PKGVERSION, version); + ui_file_style style; + if (interactive) + { + ui_file_style nstyle = { ui_file_style::MAGENTA, ui_file_style::NONE, + ui_file_style::BOLD }; + style = nstyle; + } + fprintf_styled (stream, style, "GNU gdb %s%s\n", PKGVERSION, version); /* Second line is a copyright notice. */ |