diff options
author | Brian <runningnak3d@gmail.com> | 2010-01-30 09:26:56 -0700 |
---|---|---|
committer | Brian <runningnak3d@gmail.com> | 2010-01-30 09:26:56 -0700 |
commit | 6a3cd98529ae4f32a1207f0215f81621c4f793e8 (patch) | |
tree | 052e575f5a422db55f2a487bd618d4cb64a31187 /src/trinitycore/CliRunnable.cpp | |
parent | cfa8ff7bd6e001742f6149a84944966c85e2b1e2 (diff) |
* Fixed the console in Linux so the prompt doesn't get hung, that was so
* annoying. Original idea by stump
--HG--
branch : trunk
Diffstat (limited to 'src/trinitycore/CliRunnable.cpp')
-rw-r--r-- | src/trinitycore/CliRunnable.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp index f18d7ca49cb..f8bd94fc912 100644 --- a/src/trinitycore/CliRunnable.cpp +++ b/src/trinitycore/CliRunnable.cpp @@ -98,7 +98,12 @@ void utf8print(const char* str) CharToOemBuffW(&wtemp_buf[0],&temp_buf[0],wtemp_len+1); printf(temp_buf); #else - printf(str); +{ + va_list v; + vprintf(str, v); + va_end(v); + fflush(stdout); +} #endif } |