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-02-03 18:53:40 +0000
committerStijn Buys <ingar@osirion.org>2008-02-03 18:53:40 +0000
commit43b994017a560a2fa97894ebfe121375d6614b6f (patch)
treebebdf504c283a797707f92d46e7d3ed8b5100a9d /src/client/console.h
parent6011bbb179f72a370411960eafdbbc98e6607f05 (diff)
basic client console
Diffstat (limited to 'src/client/console.h')
-rw-r--r--src/client/console.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/client/console.h b/src/client/console.h
index ee3b85e..7f98666 100644
--- a/src/client/console.h
+++ b/src/client/console.h
@@ -8,7 +8,13 @@
#define __INCLUDED_CLIENT_CONSOLE_H__
#include "sys/consoleinterface.h"
+
+#include <SDL/SDL.h>
+
#include <sstream>
+#include <deque>
+
+#define MAXCONLINES 2048
namespace client {
@@ -40,12 +46,18 @@ public:
bool visible;
+ /// toggle handle keyboard input
+ void handle_keyreleased(SDL_keysym* keysym);
+
protected:
/// console text buffer
std::stringstream buffer;
/// console text data
- std::string text;
+ std::deque<std::string> text;
+
+private:
+ std::string input;
};
}