binutils-gdb/gdb/tui
Tom Tromey 11061048d1 Give a name to the TUI SingleKey keymap
Readline 8.0 has a feature that lets an application name a keymap.
This in turn makes it simpler for users to bind keys in keymaps in
their .inputrc.

This patch gives a name to the TUI SingleKey keymap, so that
additional bindings can be made there.  For example:

    $if gdb
    set keymap SingleKey
    "X": "echo hello\\n\n"
    $endif

The call to rl_initialize, in tui_initialize_readline, had to be
removed so that .inputrc was not read too early.  Note that Readline
explicitly documents that this call is not needed.

gdb/ChangeLog
2019-09-18  Tom Tromey  <tom@tromey.com>

	* NEWS: Add entry.
	* tui/tui.c (tui_initialize_readline): Set name of keymap.  Do not
	call rl_initialize.
	(tui_enable): Do not call rl_initialize.

gdb/doc/ChangeLog
2019-09-18  Tom Tromey  <tom@tromey.com>

	* gdb.texinfo (Editing): Document readline application name.
	(TUI Single Key Mode): Document TUI SingleKey keymap name.
2019-09-18 15:03:29 -06:00
..
ChangeLog-1998-2003
tui-command.c Change tui_make_window to be a method 2019-08-20 16:45:50 -06:00
tui-command.h TUI resize unification 2019-08-15 14:17:11 -06:00
tui-data.c Change tui_make_window to be a method 2019-08-20 16:45:50 -06:00
tui-data.h Remove tui_win_info::refresh_all 2019-08-30 12:57:10 -06:00
tui-disasm.c Remove the TUI execution info window 2019-08-16 14:17:36 -06:00
tui-disasm.h Some i18n fixes for the TUI 2019-08-20 16:22:03 -06:00
tui-file.c
tui-file.h
tui-hooks.c Change tui_check_register_values to be a method 2019-08-20 16:45:50 -06:00
tui-hooks.h
tui-interp.c Remove tui_initialize_static_data 2019-08-15 12:29:28 -06:00
tui-io.c Don't call wrefresh from tui_cont_sig 2019-08-30 12:57:10 -06:00
tui-io.h Change tui_data_item_window::content to be a unique_xmalloc_ptr 2019-08-20 16:45:50 -06:00
tui-layout.c Don't call tui_refresh_all from show_layout 2019-08-30 12:57:07 -06:00
tui-layout.h Make tui_default_win_height static 2019-08-13 14:52:09 -06:00
tui-out.c Rename field_int to field_signed 2019-07-17 10:34:05 -06:00
tui-out.h Rename field_int to field_signed 2019-07-17 10:34:05 -06:00
tui-regs.c Remove tui_win_info::refresh_all 2019-08-30 12:57:10 -06:00
tui-regs.h Remove tui_win_info::refresh_all 2019-08-30 12:57:10 -06:00
tui-source.c Change tui_make_window to be a method 2019-08-20 16:45:50 -06:00
tui-source.h Some i18n fixes for the TUI 2019-08-20 16:22:03 -06:00
tui-stack.c Minor rearrangement of tui-stack.c 2019-08-30 12:57:09 -06:00
tui-stack.h Turn two locator functions into methods 2019-08-30 12:57:07 -06:00
tui-win.c Use ui_out for "info win" 2019-09-09 17:06:22 -06:00
tui-win.h Introduce methods for scrolling 2019-06-25 07:48:28 -06:00
tui-wingeneral.c Truncate long TUI window titles 2019-09-08 14:06:54 -06:00
tui-wingeneral.h Change tui_make_window to be a method 2019-08-20 16:45:50 -06:00
tui-winsource.c Remove tui_win_info::refresh_all 2019-08-30 12:57:10 -06:00
tui-winsource.h Remove tui_win_info::refresh_all 2019-08-30 12:57:10 -06:00
tui.c Give a name to the TUI SingleKey keymap 2019-09-18 15:03:29 -06:00
tui.h Remove the TUI execution info window 2019-08-16 14:17:36 -06:00