mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-22 01:21:53 -06:00
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>
This commit is contained in:
parent
0150cd81cf
commit
13401ba0b9
3 changed files with 39 additions and 0 deletions
|
@ -240,4 +240,6 @@ static inline void qemu_init_auxval(char **envp) { }
|
|||
void qemu_init_auxval(char **envp);
|
||||
#endif
|
||||
|
||||
void qemu_set_tty_echo(int fd, bool echo);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue