From: John Tsiombikas Date: Wed, 27 Nov 2019 15:51:29 +0000 (+0200) Subject: foo X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=visor;a=commitdiff_plain foo --- diff --git a/libvisor/include/visor.h b/libvisor/include/visor.h index 46de4d8..c17e7d8 100644 --- a/libvisor/include/visor.h +++ b/libvisor/include/visor.h @@ -160,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_ */ diff --git a/libvisor/src/vinp.c b/libvisor/src/vinp.c new file mode 100644 index 0000000..1dae965 --- /dev/null +++ b/libvisor/src/vinp.c @@ -0,0 +1,6 @@ +#include "visor.h" +#include "vimpl.h" + +void vi_keypress(struct visor *vi, int key) +{ +} diff --git a/visor/src/main_unix.c b/visor/src/main_unix.c index 647b7da..9a9e91f 100644 --- a/visor/src/main_unix.c +++ b/visor/src/main_unix.c @@ -78,6 +78,7 @@ int main(int argc, char **argv) switch(c) { case 27: case 'q': + case -1: goto end; } }