kakoune/src/ncurses.hh

31 lines
585 B
C++
Raw Normal View History

#ifndef ncurses_hh_INCLUDED
#define ncurses_hh_INCLUDED
2012-06-28 14:11:43 +02:00
#include "client.hh"
namespace Kakoune
{
2012-06-28 14:11:43 +02:00
class NCursesClient : public Client
{
public:
2012-06-28 14:11:43 +02:00
NCursesClient();
~NCursesClient();
2012-06-28 14:11:43 +02:00
NCursesClient(const NCursesClient&) = delete;
NCursesClient& operator=(const NCursesClient&) = delete;
void draw_window(Window& window);
void print_status(const String& status);
String prompt(const String& prompt, const Context& context, Completer completer);
Key get_key();
int menu(const memoryview<String>& choices);
};
}
#endif // ncurses_hh_INCLUDED