From 536d5b0e19ad58b8d82f50444a7d57bbaefb0457 Mon Sep 17 00:00:00 2001 From: Michael Homer Date: Fri, 15 Aug 2014 18:44:59 +1200 Subject: Set stdout to line buffered for scripting -t When stdout was not a terminal the default buffering made it hard to script the -t option usefully. With this commit, output is always line buffered, so each URL dragged on will be printed immediately. --- dragon.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dragon.c') diff --git a/dragon.c b/dragon.c index d1712a3..acdd3d4 100644 --- a/dragon.c +++ b/dragon.c @@ -259,6 +259,8 @@ int main (int argc, char **argv) { progname, argv[i]); } } + setvbuf(stdout, NULL, _IOLBF, BUFSIZ); + GtkAccelGroup *accelgroup; GClosure *closure; -- cgit