[RFC,7/8] Style the gdb welcome message
Commit Message
This changes gdb to style the welcome message that is shown by
default. The styling is only done interactively.
---
gdb/top.c | 8 ++++++++
1 file changed, 8 insertions(+)
@@ -1281,7 +1281,15 @@ 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. */
+ if (interactive)
+ {
+ ui_file_style style = { ui_file_style::MAGENTA, ui_file_style::NONE,
+ ui_file_style::BOLD };
+ set_output_style (stream, style);
+ }
fprintf_filtered (stream, "GNU gdb %s%s\n", PKGVERSION, version);
+ if (interactive)
+ set_output_style (stream, ui_file_style ());
/* Second line is a copyright notice. */