aboutsummaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-05-16 18:01:13 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-05-17 12:46:19 +0200
commit1244aeae5c603593aa71df4b67974c11ea1576cd (patch)
tree94b2639fa09505df2a40e31139b43bba187325e3 /editor.h
parent55d76f8a38a1da911bf3162f2b1f60cf91ec94bb (diff)
downloadvis-1244aeae5c603593aa71df4b67974c11ea1576cd.tar.gz
vis-1244aeae5c603593aa71df4b67974c11ea1576cd.tar.xz
Filter command :!
If no range is given then stdin is passed through which allows interactive usage as in :!ls -1 *.c | slmenu For this to work the command needs to use stderr for its user interface and write any data for vis to stdout.
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor.h b/editor.h
index 7104d01..d985755 100644
--- a/editor.h
+++ b/editor.h
@@ -2,6 +2,7 @@
#define EDITOR_H
#include <curses.h>
+#include <signal.h>
#include <stddef.h>
#include <stdbool.h>
@@ -244,6 +245,7 @@ struct Editor {
Mode *mode_prev; /* previsouly active user mode */
Mode *mode_before_prompt; /* user mode which was active before entering prompt */
volatile bool running; /* exit main loop once this becomes false */
+ volatile sig_atomic_t cancel_filter; /* abort external command */
};
Editor *editor_new(Ui*);