sim_console: Use cfmakeraw() and add option for ctrl-c to exit sim
authorAnton Blanchard <anton@linux.ibm.com>
Wed, 22 Jan 2020 03:27:40 +0000 (14:27 +1100)
committerAnton Blanchard <anton@ozlabs.org>
Wed, 22 Jan 2020 03:34:20 +0000 (14:34 +1100)
commit817315a8862ab6959a804cc9095391a21edbaa37
tree47bb402e2779324ae5f2c483415917472ffcff42
parentace1d32ddb511d88b0504801f2f09198b5b43bf3
sim_console: Use cfmakeraw() and add option for ctrl-c to exit sim

No need to open code a bunch of random termios flags, use cfmakeraw().

Most of the time we want ctrl-c to exit the current simulation, so
make that the default.

Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
sim_console_c.c