X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=samples%2Fplasma.c;h=ac17265f3791d01c858e9538ed7c5ac177fda3a7;hb=6002e59c286fcb7292f4cf8d2a51828485e5321e;hp=7b092ec818d8b50178a73027d76e7675e5363a90;hpb=0b186407f1117529f0f6902569f9d24bc8b1b979;p=cc65 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; } - -