]> git.sur5r.net Git - c128-kasse/commitdiff
use colors for a good/bad sale
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 29 Sep 2012 16:51:58 +0000 (18:51 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 29 Sep 2012 16:51:58 +0000 (18:51 +0200)
src/kasse.c

index 3c59486bd46c4f2067f65cbad365b42be6caeedd..a1cc6bc69e64a37b2ec5e54e3eda1f2bc3e42653 100644 (file)
@@ -199,15 +199,19 @@ static signed int buy(char *name, unsigned int price) {
                                exit(1);
                        }
 
+                       textcolor(TC_LIGHT_GREEN);
                        cprintf("\r\nVerbleibendes Guthaben fuer %s: %s. Druecke RETURN...\r\n",
                                nickname, rest);
+                       textcolor(TC_LIGHT_GRAY);
                        toggle_videomode();
                        cprintf("\r\nDein Guthaben betraegt noch %s.\r\n", rest);
                        toggle_videomode();
                        get_input();
                        matches++;
                } else {
+                       textcolor(TC_LIGHT_RED);
                        cprintf("\r\nNickname nicht gefunden in der Guthabenverwaltung! Abbruch, druecke RETURN...\r\n");
+                       textcolor(TC_LIGHT_GRAY);
                        get_input();
                        return 0;
                }