2012-02-16 15:25:16 +01:00
|
|
|
#ifndef ncurses_hh_INCLUDED
|
|
|
|
#define ncurses_hh_INCLUDED
|
|
|
|
|
2012-06-06 01:15:19 +02:00
|
|
|
#include "ui.hh"
|
2012-02-16 15:25:16 +01:00
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
2012-06-06 01:15:19 +02:00
|
|
|
class NCursesUI : public UI
|
2012-02-16 15:25:16 +01:00
|
|
|
{
|
2012-06-06 01:15:19 +02:00
|
|
|
public:
|
|
|
|
NCursesUI();
|
|
|
|
~NCursesUI();
|
2012-02-16 15:25:16 +01:00
|
|
|
|
2012-06-06 01:15:19 +02:00
|
|
|
NCursesUI(const NCursesUI&) = delete;
|
|
|
|
NCursesUI& operator=(const NCursesUI&) = delete;
|
2012-02-16 15:25:16 +01:00
|
|
|
|
2012-06-06 01:15:19 +02:00
|
|
|
void draw_window(Window& window);
|
|
|
|
void print_status(const String& status);
|
|
|
|
|
|
|
|
String prompt(const String& prompt, Completer completer);
|
|
|
|
Key get_key();
|
|
|
|
};
|
2012-02-16 15:25:16 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // ncurses_hh_INCLUDED
|
|
|
|
|