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);
|
vstr_clear(&vstr);
|
||||||
if (ret == CHAR_CTRL_D) {
|
if (ret == CHAR_CTRL_D) {
|
||||||
// EOF
|
// EOF
|
||||||
|
printf("\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user