Begin re-write of basic display functions in scheme
[texed.git] / display.h
blob358adb1d722f37dbb6b75c4c4c182b2658f7816a
2 #ifndef DISPLAY_H
3 #define DISPLAY_H
5 #define NORMAL_STATE 0
6 #define INSERT_STATE 1
7 #define VISUAL_STATE 2
9 #include "buffer.h"
10 #include <ncurses.h>
12 typedef struct
14 WINDOW buffer_display;
15 WINDOW modeline;
16 buffer_t contents;
17 } editor_window_t;
19 WINDOW* main_window;
21 WINDOW* minibuf;
23 void display_init ();
25 void minibuf_echo (char* string);
27 void minibuf_clear ();
29 void cursor_move_handler (buffer_t* current, int key);
31 void display_render (buffer_t contents, int state);
33 #endif