Fix placement of output in TUI mode
authorTom Tromey <tom@tromey.com>
Sat, 12 Jan 2019 20:35:06 +0000 (13:35 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 14 Jan 2019 23:17:17 +0000 (16:17 -0700)
commitbbd94648f2115338bd94e9800ba0e37f09d98a79
treefaf3114909bef4bf765392efecd1a3a8a985fc7f
parent8f0a21480babea5b22cba13a3bee722408ca57e3
Fix placement of output in TUI mode

The fix for PR tui/28819 regressed gdb command output a bit.  In
"nonl" mode, pressing the Enter key will result in a newline not being
echoed properly, so that gdb output for the command will begin on the
same line as the input.

This patch changes gdb_wgetch to echo the newline.  I have only tested
this interactively, as the TUI doesn't have automated tests in
general.

gdb/ChangeLog
2019-01-14  Tom Tromey  <tom@tromey.com>

PR tui/28819:
* tui/tui-io.c (gdb_wgetch): Print \r when needed.
gdb/ChangeLog
gdb/tui/tui-io.c