mirror of
https://github.com/espressif/openthread.git
synced 2026-07-10 14:20:29 +00:00
For upstream/serial and logging fixes (#28)
* posix: logging: Use `stderr` instead of `stdout` for debug logging. * posix: serial: Restore socket `termios` settings for `stdin` and `stdout` at exit.
This commit is contained in:
committed by
Jonathan Hui
parent
1f24fa44fa
commit
4c560dc94e
@@ -32,6 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <cli/cli.hpp>
|
||||
@@ -101,6 +102,10 @@ void Serial::ReceiveTask(void)
|
||||
|
||||
break;
|
||||
|
||||
case 3: // CTRL-C
|
||||
exit(1);
|
||||
break;
|
||||
|
||||
case '\b':
|
||||
case 127:
|
||||
otPlatSerialSend(sEraseString, sizeof(sEraseString));
|
||||
|
||||
Reference in New Issue
Block a user