Skip to content

Commit

Permalink
修复 x86 demo输入过快时的回显问题
Browse files Browse the repository at this point in the history
  • Loading branch information
NevermindZZT committed Jun 5, 2021
1 parent e383e5a commit fe95543
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/x86-gcc/shell_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ unsigned short userShellRead(char *data, unsigned short len)
{
*data++ = getchar();
}
system("stty icanon");
system("stty echo");
// system("stty icanon");
// system("stty echo");
return len;
}

Expand Down Expand Up @@ -142,8 +142,8 @@ void userShellInit(void)
log.write = terminalLogWrite;
logRegister(&log, &shell);

logDebug("hello world");
logHexDump(LOG_ALL_OBJ, LOG_DEBUG, (void *)&shell, sizeof(shell));
// logDebug("hello world");
// logHexDump(LOG_ALL_OBJ, LOG_DEBUG, (void *)&shell, sizeof(shell));
}


Expand Down

0 comments on commit fe95543

Please sign in to comment.