mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
committed by
Norman Feske
parent
59e0dc3538
commit
f109f4b02d
@@ -949,11 +949,18 @@ namespace {
|
||||
PDBG("TIOCGETA - argp=0x%p", argp);
|
||||
::termios *termios = (::termios *)argp;
|
||||
|
||||
termios->c_iflag = 0;
|
||||
termios->c_oflag = 0;
|
||||
termios->c_cflag = 0;
|
||||
/*
|
||||
* Set 'ECHO' flag, needed by libreadline. Otherwise, echoing
|
||||
* user input doesn't work in bash.
|
||||
*/
|
||||
termios->c_lflag = ECHO;
|
||||
memset(termios->c_cc, _POSIX_VDISABLE, sizeof(termios->c_cc));
|
||||
termios->c_ispeed = 0;
|
||||
termios->c_ospeed = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user