From 28383de41fea94efcb3cdeea649ddf5e1124f253 Mon Sep 17 00:00:00 2001 From: Logan Wright Date: Fri, 3 Feb 2017 14:21:59 +0100 Subject: [PATCH] add realtime logging capabilities by forcing logs out --- Sources/Console/Terminal/Terminal.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Console/Terminal/Terminal.swift b/Sources/Console/Terminal/Terminal.swift index 5925fef9..56453d53 100644 --- a/Sources/Console/Terminal/Terminal.swift +++ b/Sources/Console/Terminal/Terminal.swift @@ -48,6 +48,7 @@ public class Terminal: ConsoleProtocol { } Swift.print(output, terminator: terminator) + fflush(stdout) } /**