From 8c50cfa0b880143fd8d3638af9c8fe66df944efc Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 29 Sep 2012 18:51:58 +0200 Subject: [PATCH] use colors for a good/bad sale --- src/kasse.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.5