summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-01-23 18:02:16 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-24 09:34:11 +0100
commit39db674c45b851e5dab019469e34db3f1c2bf6a9 (patch)
tree1efcf7c15c814e2548541b3d42e82bb832b09913 /commands
parent23a90fe3d763d0b349387b148dd1494bb37df971 (diff)
downloadbarebox-39db674c45b851e5dab019469e34db3f1c2bf6a9.tar.gz
barebox-39db674c45b851e5dab019469e34db3f1c2bf6a9.tar.xz
output: use '[0m' to reset colors
'[m' is supposed to have the same effect as '[0m'. However, some EFI implementations seem to ignore '[m', so use '[0m' everywhere to avoid rendering issues. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/2048.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/2048.c b/commands/2048.c
index 5ceb5cfb7d..865803a5a6 100644
--- a/commands/2048.c
+++ b/commands/2048.c
@@ -53,7 +53,7 @@ static void getColor(uint16_t value, char *color, size_t length)
static void drawBoard(uint16_t board[SIZE][SIZE])
{
int8_t x,y;
- char color[40], reset[] = "\033[m";
+ char color[40], reset[] = "\033[0m";
printf("\033[H");
printf("2048.c %17d pts\n\n",score);