foo master
authorJohn Tsiombikas <nuclear@member.fsf.org>
Wed, 27 Nov 2019 15:51:29 +0000 (17:51 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Wed, 27 Nov 2019 15:51:29 +0000 (17:51 +0200)
libvisor/include/visor.h
libvisor/src/vinp.c [new file with mode: 0644]
visor/src/main_unix.c

index 46de4d8..c17e7d8 100644 (file)
@@ -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 (file)
index 0000000..1dae965
--- /dev/null
@@ -0,0 +1,6 @@
+#include "visor.h"
+#include "vimpl.h"
+
+void vi_keypress(struct visor *vi, int key)
+{
+}
index 647b7da..9a9e91f 100644 (file)
@@ -78,6 +78,7 @@ int main(int argc, char **argv)
                switch(c) {
                case 27:
                case 'q':
+               case -1:
                        goto end;
                }
        }