From: Oliver Schmidt
Date: Sat, 15 Oct 2016 13:45:17 +0000 (+0200)
Subject: Make use of doesclrscrafterexit().
X-Git-Tag: V2.16~62
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dfbd96f09e742dd46d67e4c10c55ba58ccb2a6e9;p=cc65
Make use of doesclrscrafterexit().
---
diff --git a/samples/plasma.c b/samples/plasma.c
index 7b092ec81..ac17265f3 100644
--- a/samples/plasma.c
+++ b/samples/plasma.c
@@ -12,6 +12,7 @@
#include
#include
#include
+#include
@@ -292,12 +293,11 @@ int main (void)
gotoxy (0, 1); cprintf ("frames: %lu", f);
gotoxy (0, 2); cprintf ("fps : %lu.%u", fps, fps10);
- /* Wait for a key, then end */
- cputsxy (0, 4, "Press any key when done...");
- (void) cgetc ();
+ if (doesclrscrafterexit ()) {
+ cputsxy (0, 4, "Press any key when done...");
+ (void) cgetc ();
+ }
/* Done */
return EXIT_SUCCESS;
}
-
-