Fix gdb/TUI behavior in response to [Enter] keypress
authorEli Zaretskii <eliz@gnu.org>
Mon, 18 Mar 2019 18:04:40 +0000 (20:04 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 18 Mar 2019 18:06:58 +0000 (20:06 +0200)
commit2e73c81b875328f60d22d74ddb8dbe77757d9737
treef38dd2c0a51590c99923a360e0accb63946d0a6c
parent77b66be9699f4800e169acb5cba6c96bd9cb327b
Fix gdb/TUI behavior in response to [Enter] keypress

gdb/ChangeLog:
2019-03-18  Eli Zaretskii  <eliz@gnu.org>

* tui/tui-io.c (gdb_wgetch): Don't echo CR.
(tui_getc): When gdb_wgetch returns a CR, behave the same as when
it returns a newline.  This fixes a regression in TUI mode, whereby
the next line is output on the same screen line as the user input.

(cherry picked from commit b17c4cd078e2d1d8951951016815e474fb133780)
gdb/ChangeLog
gdb/tui/tui-io.c