Fix for #84: Missing newline can lead to dropped lines.
authorDavid Griffith <dave@661.org>
Mon, 20 Aug 2018 01:29:44 +0000 (18:29 -0700)
committerDavid Griffith <dave@661.org>
Mon, 20 Aug 2018 01:29:44 +0000 (18:29 -0700)
commitcfec4f1ed81a8e733effbaa93acd917e7f6bded0
tree11b88c914c0ecdf9bc0454eb041630a42597cc8d
parent1d6a5778af8863807a53db900fe85929c0710367
Fix for #84: Missing newline can lead to dropped lines.

If the last zchar printed in a program is not ZC_RETURN, the Frotz core
exits without flushing the buffer, thereby leading to dropped lines.
This fix calls new_line() when the program finished, which emits a
ZC_RETURN to the output stream and flushes the buffer.
src/common/buffer.c
src/common/frotz.h
src/common/main.c
src/common/process.c