From dfbd96f09e742dd46d67e4c10c55ba58ccb2a6e9 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Sat, 15 Oct 2016 15:45:17 +0200
Subject: [PATCH] Make use of doesclrscrafterexit().
---
samples/plasma.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
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;
}
-
-