2012-02-16 18:25:16 +04:00
|
|
|
#ifndef ncurses_hh_INCLUDED
|
|
|
|
#define ncurses_hh_INCLUDED
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
|
|
#include "keys.hh"
|
|
|
|
#include "completion.hh"
|
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
|
|
|
class Window;
|
|
|
|
|
2012-04-14 05:17:09 +04:00
|
|
|
typedef std::function<String (const String&, Completer)> PromptFunc;
|
2012-02-16 18:25:16 +04:00
|
|
|
typedef std::function<Key ()> GetKeyFunc;
|
|
|
|
|
|
|
|
struct prompt_aborted {};
|
|
|
|
|
|
|
|
namespace NCurses
|
|
|
|
{
|
|
|
|
|
|
|
|
void init(PromptFunc& prompt_func, GetKeyFunc& get_key_func);
|
|
|
|
void deinit();
|
|
|
|
void draw_window(Window& window);
|
2012-04-14 05:17:09 +04:00
|
|
|
void print_status(const String& status);
|
2012-02-16 18:25:16 +04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // ncurses_hh_INCLUDED
|
|
|
|
|