~smlavine/ascii-breakout

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

[PATCH] Flush output in showMessage

Details
Message ID
<20220103114414.898-1-yyp@disroot.org>
DKIM signature
missing
Download raw message
Patch: +1 -0
This caused welcome and game over messages to not appear until pressing
a key for some reason.
---
 main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main.c b/main.c
index 8b99c20..191304b 100644
--- a/main.c
+++ b/main.c
@@ -646,6 +646,7 @@ showMessage(char *fmt, ...)
	} // for(...)

	va_end(ap);
	fflush(stdout);
}

// Updates the level counter in the footer.
-- 
2.34.1
Details
Message ID
<CGW5I5J93AE4.1XMCYZCMY4YYP@archlinux-x220>
In-Reply-To
<20220103114414.898-1-yyp@disroot.org> (view parent)
DKIM signature
missing
Download raw message
Thank you, applied!

To git@git.sr.ht:~smlavine/ascii-breakout
   fb59ff7..40c0e67 master -> master

On IRC, Alexey and I agreed that a way to fundamentally fix this problem
is to open /dev/tty instead. I did this to fix a similar issue in
navipage[0].

[0]: https://git.sr.ht/~smlavine/navipage/commit/86b2d867cf7c8e9be2fffc4695902d38bd98eb3c
Reply to thread Export thread (mbox)