From 96580df84cb93802bfce917086596bc81ebec724 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Wed, 27 Nov 2019 17:51:29 +0200 Subject: [PATCH] foo --- libvisor/include/visor.h | 4 ++++ libvisor/src/vinp.c | 6 ++++++ visor/src/main_unix.c | 1 + 3 files changed, 11 insertions(+) create mode 100644 libvisor/src/vinp.c 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; } } -- 1.7.10.4