void (*del_back)(void *cls);
void (*del_fwd)(void *cls);
void (*status)(char *s, void *cls);
+ void (*flush)(void *cls);
};
/* Create a new instance of the visor editor.
void vi_set_fileops(struct visor *vi, struct vi_fileops *fop);
void vi_set_ttyops(struct visor *vi, struct vi_ttyops *tty);
+void vi_term_size(struct visor *vi, int xsz, int ysz);
+void vi_redraw(struct visor *vi);
+
/* vi_new_buf creates a new buffer and inserts it in the buffer list. If the
* path pointer is null, the new buffer will be empty, otherwise it's as if it
* was followed by a vi_buf_read call to read a file into the buffer.
void vi_buf_del(struct vi_buffer *vb, vi_motion mot);
void vi_buf_yank(struct vi_buffer *vb, vi_motion mot);
+
+/* high level user input handling */
+void vi_keypress(struct visor *vi, int key);
+
#endif /* LIB_VISOR_TEXTED_CORE_H_ */