It is common practice to quit programs reading from stdin by sending
EOF to their input. This commit ensures such an exit is functionally
equivalent to a regular exit via the 'q' command.
When quiting via Control-D rather than the 'q' command, the shell prompt
gets mixed with the gmnlm one.
src/gmnlm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gmnlm.c b/src/gmnlm.c
index b30d602..6b0016c 100644
--- a/src/gmnlm.c+++ b/src/gmnlm.c
@@ -1241,6 +1241,7 @@ main(int argc, char *argv)
+ fputc('\n', browser.tty); browser.running = false;