From b665bd2bc2af533b1f170557cc8b7fd02b9dd3f3 Mon Sep 17 00:00:00 2001 From: prozacx Date: Thu, 26 May 2005 20:13:06 +0000 Subject: [PATCH] Added some fflush() calls to output functions git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@363 726aef4b-f618-498e-8847-2d620e286838 --- Utils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Utils.cpp b/Utils.cpp index 59111af1..f331ae22 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -333,10 +333,12 @@ bool CUtils::GetInput(const CString& sPrompt, CString& sRet, const CString& sDef void CUtils::PrintError(const CString& sMessage) { fprintf(stdout, "\033[1m\033[34m[\033[31m ** \033[34m]\033[39m\033[22m %s\n", sMessage.c_str()); + fflush(stdout); } void CUtils::PrintPrompt(const CString& sMessage) { fprintf(stdout, "\033[1m\033[34m[\033[33m ?? \033[34m]\033[39m\033[22m %s: ", sMessage.c_str()); + fflush(stdout); } void CUtils::PrintMessage(const CString& sMessage, bool bStrong) { @@ -345,6 +347,8 @@ void CUtils::PrintMessage(const CString& sMessage, bool bStrong) { sMessage.c_str(), ((bStrong) ? "\033[22m" : "") ); + + fflush(stdout); } void CUtils::PrintAction(const CString& sMessage) { @@ -368,6 +372,8 @@ void CUtils::PrintStatus(bool bSuccess, const CString& sMessage) { } else { fprintf(stdout, "\033[1m\033[34m[\033[31m !! \033[34m]\033[39m\033[22m\n"); } + + fflush(stdout); } CTable::CTable() {}