mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 21:18:23 +00:00
arch/sim: Don't remove OPOST in the raw mode
to ensure '\n' from host library output correctly(translate to '\r\n') Change-Id: I9ce81adb04ca01cfd8a0ec8e8dc85c7fad848601 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
f6e505c252
commit
35b12f7cfe
1 changed files with 0 additions and 1 deletions
|
|
@ -70,7 +70,6 @@ static void setrawmode(int fd)
|
|||
|
||||
raw.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR |
|
||||
ICRNL | IXON);
|
||||
raw.c_oflag &= ~OPOST;
|
||||
raw.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
|
||||
raw.c_cflag &= ~(CSIZE | PARENB);
|
||||
raw.c_cflag |= CS8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue