summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-03-26 17:40:20 +0100
committerSebastien Helleu <flashcode@flashtux.org>2011-03-26 17:40:20 +0100
commit8bfc387579a646d5a9dc6c5c6020b44797422dc5 (patch)
tree9fca600af2515783c795ad861d891381140f698c
parenta441d67a26f104e415aadeba54fee18048b8fc7a (diff)
downloadweechat-8bfc387579a646d5a9dc6c5c6020b44797422dc5.zip
core: flush stdout after changing terminal title (patch from Guido Berhoerster)
-rw-r--r--src/gui/curses/gui-curses-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index d250bf1db..6566709c1 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -26,6 +26,7 @@
#endif
#include <stdlib.h>
+#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
@@ -2057,6 +2058,7 @@ gui_window_set_title (const char *title)
printf ("\33]0;%s\7", "Terminal");
}
}
+ fflush (stdout);
}
}