2012-02-16 15:25:16 +01:00
|
|
|
#ifndef ncurses_hh_INCLUDED
|
|
|
|
#define ncurses_hh_INCLUDED
|
|
|
|
|
2012-06-28 14:11:43 +02:00
|
|
|
#include "client.hh"
|
2012-02-16 15:25:16 +01:00
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
2012-06-28 14:11:43 +02:00
|
|
|
class NCursesClient : public Client
|
2012-02-16 15:25:16 +01:00
|
|
|
{
|
2012-06-06 01:15:19 +02:00
|
|
|
public:
|
2012-06-28 14:11:43 +02:00
|
|
|
NCursesClient();
|
|
|
|
~NCursesClient();
|
2012-02-16 15:25:16 +01:00
|
|
|
|
2012-06-28 14:11:43 +02:00
|
|
|
NCursesClient(const NCursesClient&) = delete;
|
|
|
|
NCursesClient& operator=(const NCursesClient&) = 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);
|
|
|
|
|
2012-08-05 20:13:41 +02:00
|
|
|
String prompt(const String& prompt, const Context& context, Completer completer);
|
2012-06-06 01:15:19 +02:00
|
|
|
Key get_key();
|
2012-08-30 21:14:28 +02:00
|
|
|
|
|
|
|
int menu(const memoryview<String>& choices);
|
2012-06-06 01:15:19 +02:00
|
|
|
};
|
2012-02-16 15:25:16 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // ncurses_hh_INCLUDED
|
|
|
|
|