diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-15 20:33:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-15 20:33:15 +0000 |
commit | 1e0df536c2fae85c317ce9c3cc17603d5f98c911 (patch) | |
tree | 3ab262d51451cda3e926e9581b294f08d39031d9 /src/server/console.h | |
parent | 97fca172fd51270cebd5b722f861a6c753bd4d2a (diff) |
moved client console into a Widget
Diffstat (limited to 'src/server/console.h')
-rw-r--r-- | src/server/console.h | 13 |
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; |