binutils-gdb/gdb/cli
Tom Tromey ef1dfa3644 Reset terminal styles
This adds a function that can be used to reset terminal styles,
regardless of what style the low-level output routines currently think
is applied.

This is used to make "echo" and "printf" work properly when emitting
ANSI terminal escapes -- now gdb will reset the style at the end of
the command.

gdb/ChangeLog
2018-12-28  Tom Tromey  <tom@tromey.com>

	* utils.h (reset_terminal_style): Declare.
	* utils.c (can_emit_style_escape): New function.
	(set_output_style): Use it.
	(reset_terminal_style): New function.
	* printcmd.c (printf_command): Call reset_terminal_style.
	* cli/cli-cmds.c (echo_command): Call reset_terminal_style.
2018-12-28 12:49:49 -07:00
..
cli-cmds.c Reset terminal styles 2018-12-28 12:49:49 -07:00
cli-cmds.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cli-decode.c Add a "context" argument to add_setshow_enum_cmd 2018-12-28 12:49:47 -07:00
cli-decode.h Use counted_command_line everywhere 2018-05-04 15:58:06 -06:00
cli-dump.c Fix PR cli/23785: Check if file exists when invoking "restore FILE binary" 2018-10-18 17:39:09 -04:00
cli-interp.c Avoid find_thread_ptid with null_ptid 2018-11-22 16:09:12 +00:00
cli-interp.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cli-logging.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cli-script.c python: Make gdb.execute("show commands") work (PR 23669) 2018-09-17 08:26:24 -04:00
cli-script.h Let gdb.execute handle multi-line commands 2018-05-04 15:58:09 -06:00
cli-setshow.c Convert observers to C++ 2018-03-19 09:37:49 -06:00
cli-setshow.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
cli-style.c Add output styles to gdb 2018-12-28 12:49:49 -07:00
cli-style.h Add output styles to gdb 2018-12-28 12:49:49 -07:00
cli-utils.c New cli-utils.h/.c function extract_info_print_args 2018-10-27 13:45:57 +02:00
cli-utils.h New cli-utils.h/.c function extract_info_print_args 2018-10-27 13:45:57 +02:00