Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-04-26 16:55:57 +0000
committerStijn Buys <ingar@osirion.org>2008-04-26 16:55:57 +0000
commitfe95954f9d17c9dade1827fe5d4cf8cffffddbce (patch)
tree0c5a6826979f32fb26a0d9708bb461fe22df1426 /src/client/console.cc
parenta2c0647e07d178fd69b962205f4b1163682e2d80 (diff)
virtual console::flush()
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 << ". ");