Use fputs when changing the terminal color

This commit is contained in:
Ben Ratzlaff 2018-04-27 09:56:35 -07:00 committed by Tom van Dijck
parent 138a443b3c
commit 5519acbeb8

View File

@ -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
}