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:
Xiang Xiao 2021-03-07 23:22:07 -08:00 committed by Brennan Ashton
parent 5de82de889
commit 88e3231ed9
1 changed files with 0 additions and 1 deletions

View File

@ -70,7 +70,6 @@ static void setrawmode(int fd)
raw.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | raw.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR |
ICRNL | IXON); ICRNL | IXON);
raw.c_oflag &= ~OPOST;
raw.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); raw.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);
raw.c_cflag &= ~(CSIZE | PARENB); raw.c_cflag &= ~(CSIZE | PARENB);
raw.c_cflag |= CS8; raw.c_cflag |= CS8;