mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-05 21:07:52 +00:00
flush stdout immediately for console output
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@449 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
e0e8298713
commit
bcd38449fa
@ -3510,6 +3510,7 @@ static void draw_string(const char *s)
|
||||
width_of_s = get_string_width(s);
|
||||
if (out_to_console) {
|
||||
printf("%s\n", s);
|
||||
fflush(stdout); /* output immediately, don't buffer */
|
||||
}
|
||||
/* daemon_run(s); the daemon can be called here, but we need to have a buffer in daemon_run() and we need to tell it when everything is ready to be sent */
|
||||
memset(tmpstring1,0,TEXT_BUFFER_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user