Skip to content

Commit 100004e

Browse files
stinospfalcon
authored andcommitted
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.
1 parent 6a664cb commit 100004e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

unix/input.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ char *prompt(char *p) {
5252
vstr_clear(&vstr);
5353
if (ret == CHAR_CTRL_D) {
5454
// EOF
55+
printf("\n");
5556
return NULL;
5657
} else {
5758
printf("\n");

0 commit comments

Comments
 (0)