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:
parent
6a664cb114
commit
100004eeaf
|
@ -52,6 +52,7 @@ char *prompt(char *p) {
|
|||
vstr_clear(&vstr);
|
||||
if (ret == CHAR_CTRL_D) {
|
||||
// EOF
|
||||
printf("\n");
|
||||
return NULL;
|
||||
} else {
|
||||
printf("\n");
|
||||
|
|
Loading…
Reference in New Issue