You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
unix: Print an extra newline to the output on ctrl-D
This assures the terminal prints it's prompt on a fresh line instead of appending it to the uPy prompt after exit.
This commit is contained in:
@@ -52,6 +52,7 @@ char *prompt(char *p) {
|
||||
vstr_clear(&vstr);
|
||||
if (ret == CHAR_CTRL_D) {
|
||||
// EOF
|
||||
printf("\n");
|
||||
return NULL;
|
||||
} else {
|
||||
printf("\n");
|
||||
|
||||
Reference in New Issue
Block a user