diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-09-16 19:15:13 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-09-16 19:15:13 +0100 |
| commit | 06e06d6ea67f10ececd7232471505e7d8f36d509 (patch) | |
| tree | 478b39028f534bb6b89b16ffcffa54c83c61b3c2 /src/ncurses.hh | |
| parent | 49903523a7f28c18d324bf605876b9d18a97047b (diff) | |
remove print_status from UserInterface, pass status line to draw
Client store the current status line. This way calls to print status
do not force the user interface to display directly.
Diffstat (limited to 'src/ncurses.hh')
| -rw-r--r-- | src/ncurses.hh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ncurses.hh b/src/ncurses.hh index 2cdcd06d..47463eb7 100644 --- a/src/ncurses.hh +++ b/src/ncurses.hh @@ -20,8 +20,8 @@ public: NCursesUI& operator=(const NCursesUI&) = delete; void draw(const DisplayBuffer& display_buffer, + const DisplayLine& status_line, const DisplayLine& mode_line) override; - void print_status(const DisplayLine& status) override; bool is_key_available() override; Key get_key() override; @@ -49,8 +49,6 @@ private: DisplayCoord m_dimensions; void update_dimensions(); - DisplayLine m_status_line; - NCursesWin* m_menu_win = nullptr; std::vector<String> m_choices; ColorPair m_menu_fg; |
