mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/cu: Disable echo if it's enabled to avoid double input character
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
4a9752ed3d
commit
96cd66cf51
1 changed files with 4 additions and 0 deletions
|
|
@ -179,6 +179,10 @@ static int set_termios(int fd, int rate, enum parity_mode parity,
|
|||
tio.c_oflag |= ONLCR;
|
||||
}
|
||||
|
||||
/* disable echo if it's enabled to avoid double input character */
|
||||
|
||||
tio.c_iflag &= ~ECHO;
|
||||
|
||||
ret = tcsetattr(fd, TCSANOW, &tio);
|
||||
if (ret)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue