From 9915b9fd0b8e59bda9e334eb9485c473b06055c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 30 Mar 2015 23:04:54 +0200 Subject: Preliminary user interface separation In theory only ui-curses.[hc] should depend on curses, however in practice keyboard input is still handled in vis.c. Furthermore the syntax definitions as well as keyboard bindings and selection code in window.c still depends on some curses constants. There is also a slight regression in that the window status bar does not show the current mode name. This and related global state should be eliminated in the future. --- ui-curses.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ui-curses.h (limited to 'ui-curses.h') diff --git a/ui-curses.h b/ui-curses.h new file mode 100644 index 0000000..74cb920 --- /dev/null +++ b/ui-curses.h @@ -0,0 +1,9 @@ +#ifndef UI_CURSES_H +#define UI_CURSES_H + +#include "ui.h" + +Ui *ui_curses_new(void); +void ui_curses_free(Ui*); + +#endif -- cgit v1.2.3