osdep: add qemu_set_tty_echo()
commit13401ba0b982024b62a99388032bbb889dc98b43
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 14 Nov 2013 10:54:16 +0000 (14 11:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 22 Jan 2014 11:07:17 +0000 (22 12:07 +0100)
tree9a66543a386882143f938c9702d0a0d5c60f63a4
parent0150cd81cf608b93778a067189829f354fe27e4b
osdep: add qemu_set_tty_echo()

Using stdin with readline.c requires disabling echo and line buffering.
Add a portable wrapper to set the terminal attributes under Linux and
Windows.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/qemu/osdep.h
util/oslib-posix.c
util/oslib-win32.c