From 5519acbeb83fb76b13f8d5af4ab023c051018cd9 Mon Sep 17 00:00:00 2001 From: Ben Ratzlaff Date: Fri, 27 Apr 2018 09:56:35 -0700 Subject: [PATCH] Use fputs when changing the terminal color --- src/host/term_textColor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/host/term_textColor.c b/src/host/term_textColor.c index f31935c7..a9510cde 100644 --- a/src/host/term_textColor.c +++ b/src/host/term_textColor.c @@ -54,10 +54,10 @@ void term_doSetTextColor(int color) }; if (color >= 0 && color < 16) { - puts(colorTable[color]); + fputs(colorTable[color], stdout); } else { - puts("\x1B[0m"); + fputs("\x1B[0m", stdout); } #endif }