mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Added some fflush() calls to output functions
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@363 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user