|
|
@ -255,7 +255,7 @@ namespace DFHack
|
|
|
|
void color(Console::color_value index)
|
|
|
|
void color(Console::color_value index)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if(!rawmode)
|
|
|
|
if(!rawmode)
|
|
|
|
fprintf(dfout_C,getANSIColor(index));
|
|
|
|
fprintf(dfout_C, "%s", getANSIColor(index));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
const char * colstr = getANSIColor(index);
|
|
|
|
const char * colstr = getANSIColor(index);
|
|
|
@ -761,4 +761,4 @@ void Console::msleep (unsigned int msec)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (msec > 1000) sleep(msec/1000000);
|
|
|
|
if (msec > 1000) sleep(msec/1000000);
|
|
|
|
usleep((msec % 1000000) * 1000);
|
|
|
|
usleep((msec % 1000000) * 1000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|