Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/console.h')
-rw-r--r--src/server/console.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/server/console.h b/src/server/console.h
index bf77ecd..59d65d9 100644
--- a/src/server/console.h
+++ b/src/server/console.h
@@ -13,14 +13,15 @@ namespace server {
class Console : public sys::ConsoleInterface {
public:
+ Console();
+ ~Console();
+
/// initialize the server console
static void init();
/// shutdown the server console
static void shutdown();
#ifdef HAVE_CURSES
- /// flush buffered messages
- virtual void flush();
/// resize the console
virtual void resize();
/// run one console frame
@@ -39,16 +40,16 @@ protected:
void draw_input();
/// dump console content to cout
void dump();
+ /// print one line of text (do nothing)
+ virtual void print(const std::string & text);
private:
/// set ncurses drawing color
void set_color(const char *color_code);
- /// timestamp for screen refresh timeout
- float console_lastrefresh;
// input history
- std::deque<std::string> history;
- std::deque<std::string>::reverse_iterator history_pos;
+ Text history;
+ Text::reverse_iterator history_pos;
size_t input_pos;
size_t console_scroll;