2012-02-16 15:25:16 +01:00
|
|
|
#ifndef ncurses_hh_INCLUDED
|
|
|
|
#define ncurses_hh_INCLUDED
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
|
|
#include "keys.hh"
|
|
|
|
#include "completion.hh"
|
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
|
|
|
class Window;
|
|
|
|
|
2012-04-14 03:17:09 +02:00
|
|
|
typedef std::function<String (const String&, Completer)> PromptFunc;
|
2012-02-16 15:25:16 +01: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 03:17:09 +02:00
|
|
|
void print_status(const String& status);
|
2012-02-16 15:25:16 +01:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // ncurses_hh_INCLUDED
|
|
|
|
|