From: Michael Stapelberg Date: Sat, 29 Sep 2012 16:51:58 +0000 (+0200) Subject: use colors for a good/bad sale X-Git-Tag: rgb2rv9~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8c50cfa0b880143fd8d3638af9c8fe66df944efc;p=c128-kasse use colors for a good/bad sale --- diff --git a/src/kasse.c b/src/kasse.c index 3c59486..a1cc6bc 100644 --- a/src/kasse.c +++ b/src/kasse.c @@ -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; }