Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/console.cc')
-rw-r--r--src/client/console.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/console.cc b/src/client/console.cc
index 28d80f0..9e2a782 100644
--- a/src/client/console.cc
+++ b/src/client/console.cc
@@ -37,6 +37,9 @@ public:
/// stream to send debug messages too
virtual std::ostream & debugstream();
+ /// flush buffered messages
+ virtual void flush();
+
/// console text buffer
std::stringstream buffer;
};
@@ -356,6 +359,10 @@ void load_history()
}
//--- private -----------------------------------------------------
+void Console::flush()
+{
+ console::flush();
+}
std::ostream & Console::messagestream()
{
return (buffer << ". ");