summaryrefslogtreecommitdiff
path: root/apps/interpreters/bas/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/interpreters/bas/main.c')
-rw-r--r--apps/interpreters/bas/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/interpreters/bas/main.c b/apps/interpreters/bas/main.c
index c772119eb..fce6dd672 100644
--- a/apps/interpreters/bas/main.c
+++ b/apps/interpreters/bas/main.c
@@ -192,6 +192,12 @@ int bas_main(int argc, char *argv[])
bas_interpreter();
}
+ /* Terminate the output stream with a newline BEFORE closing devices */
+
+ FS_putChar(STDCHANNEL, '\n');
+
+ /* Release resouces and close files and devices */
+
bas_exit();
- return (0);
+ return 0;
}