~sircmpwn/gmni-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] gmnlm: output newline when quiting via Control-D

Details
Message ID
<20220109171458.6426-1-temp.xanomes@volny.cz>
DKIM signature
pass
Download raw message
Patch: +1 -0
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[])
			case PROMPT_MORE:
				assert(0);
			case PROMPT_QUIT:
				fputc('\n', browser.tty);
				browser.running = false;
				break;
			case PROMPT_ANSWERED:
-- 
2.34.1
Reply to thread Export thread (mbox)