mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-07 19:34:56 +00:00
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user