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
5de82de889
commit
88e3231ed9
|
@ -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…
Reference in New Issue