Made sure that the colors are reset more often; it should now happen much less often
that the terminal's color is changed when the app is quit (or interrupted). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19381 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -722,6 +722,7 @@ dprintf(const char *format,...)
|
|||||||
printf("\33[34m");
|
printf("\33[34m");
|
||||||
vprintf(format, args);
|
vprintf(format, args);
|
||||||
printf("\33[0m");
|
printf("\33[0m");
|
||||||
|
fflush(stdout);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -822,7 +822,7 @@ domain_receive_data(net_buffer *buffer)
|
|||||||
if (lastTime == 0)
|
if (lastTime == 0)
|
||||||
lastTime = now;
|
lastTime = now;
|
||||||
|
|
||||||
printf("% 3ld %8.6f (%8.6f) ", packetNumber, (now - sStartTime) / 1000000.0,
|
printf("\33[0m% 3ld %8.6f (%8.6f) ", packetNumber, (now - sStartTime) / 1000000.0,
|
||||||
(now - lastTime) / 1000000.0);
|
(now - lastTime) / 1000000.0);
|
||||||
lastTime = now;
|
lastTime = now;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user