binutils-gdb/gdb/tui
Tom Tromey 7a9569281a Call nonl before wgetch in TUI
PR tui/28819 points out that, in the TUI, the C-j and C-m keys cannot
be bound differently in one's ~/.inputrc.  However, this works in
other readline applications.

The bug is that the TUI uses curses' "nl" mode, which causes wgetch to
return the same value for both keys.  There is a "nonl" mode, but it
also affects output.

This patch fixes the bug by arranging to call nonl before reading a
key and then nl afterward.  This avoids any potential problem with
changing the output if gdb was to use nonl globally.

gdb/ChangeLog
2018-10-06  Tom Tromey  <tom@tromey.com>

	PR tui/28819:
	* tui/tui-io.c (gdb_wgetch): New function.
	(tui_mld_getc, tui_getc): Use it.
2018-10-06 15:51:37 -06:00
..
ChangeLog-1998-2003
tui-command.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-command.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-data.c Remove unused tui_win_element::highlight 2018-09-06 13:35:53 +01:00
tui-data.h Remove unused tui_win_element::highlight 2018-09-06 13:35:53 +01:00
tui-disasm.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-disasm.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-file.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-file.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-hooks.c Convert observers to C++ 2018-03-19 09:37:49 -06:00
tui-hooks.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-interp.c Use thread_info and inferior pointers more throughout 2018-06-21 17:09:31 +01:00
tui-io.c Call nonl before wgetch in TUI 2018-10-06 15:51:37 -06:00
tui-io.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-layout.c Update help strings in TUI 2018-05-24 12:29:21 -06:00
tui-layout.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-out.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-out.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-regs.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-regs.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-source.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-source.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-stack.c Simple -Wshadow=local fixes 2018-10-04 22:51:45 -06:00
tui-stack.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-win.c Small fix for "winheight" usage 2018-09-26 05:15:31 -06:00
tui-win.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-windata.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-windata.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-wingeneral.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-wingeneral.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-winsource.c Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui-winsource.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00
tui.c Add "name" method to class interp 2018-05-25 12:41:02 -06:00
tui.h Update copyright year range in all GDB files 2018-01-02 07:38:06 +04:00