mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user