X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=visor;a=blobdiff_plain;f=libvisor%2Finclude%2Fvisor.h;h=c17e7d8af9f3cdf6494b4a65c36ddde7954e1ee6;hp=4d2233a314feb49e31b12d7dc521622f6315a22f;hb=HEAD;hpb=519bb5db64dd400724d8beedd10bf54d8cf2b7af diff --git a/libvisor/include/visor.h b/libvisor/include/visor.h index 4d2233a..c17e7d8 100644 --- a/libvisor/include/visor.h +++ b/libvisor/include/visor.h @@ -97,6 +97,7 @@ struct vi_ttyops { 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. @@ -111,7 +112,7 @@ void vi_destroy(struct visor *vi); void vi_set_fileops(struct visor *vi, struct vi_fileops *fop); void vi_set_ttyops(struct visor *vi, struct vi_ttyops *tty); -void vi_window(struct visor *vi, int xsz, int ysz); +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 @@ -159,4 +160,8 @@ void vi_buf_ins_end(struct vi_buffer *vb); 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_ */