aboutsummaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-04 13:23:44 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-04 13:47:45 +0200
commit8f92b98848f9366e78c7aa824615bade83971513 (patch)
tree8c3253181320ae22abf76a370da339840a96a464 /ui.h
parent583045c2d85f30cfebc7a7689c27c797db2d30f4 (diff)
downloadvis-8f92b98848f9366e78c7aa824615bade83971513.tar.gz
vis-8f92b98848f9366e78c7aa824615bade83971513.tar.xz
vis: clean up interaction between vis and ui
A concrete user interface implementation should not have to depend on libtermkey. Therefore the vis core now uses an independent instance to parse keys.
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/ui.h b/ui.h
index de1b948..d846deb 100644
--- a/ui.h
+++ b/ui.h
@@ -3,7 +3,6 @@
#include <stdbool.h>
#include <stdarg.h>
-#include <termkey.h>
typedef struct Ui Ui;
typedef struct UiWin UiWin;
@@ -48,7 +47,6 @@ struct Ui {
bool (*init)(Ui*, Vis*);
bool (*start)(Ui*);
void (*free)(Ui*);
- void (*resize)(Ui*);
UiWin* (*window_new)(Ui*, View*, File*, enum UiOption);
void (*window_free)(UiWin*);
void (*window_focus)(UiWin*);
@@ -62,10 +60,9 @@ struct Ui {
void (*update)(Ui*);
void (*suspend)(Ui*);
const char* (*getkey)(Ui*);
- bool (*haskey)(Ui*);
+ void (*needkey)(Ui*);
void (*terminal_save)(Ui*);
void (*terminal_restore)(Ui*);
- TermKey* (*termkey_get)(Ui*);
};
struct UiWin {