diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-05-16 18:01:13 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-05-17 12:46:19 +0200 |
| commit | 1244aeae5c603593aa71df4b67974c11ea1576cd (patch) | |
| tree | 94b2639fa09505df2a40e31139b43bba187325e3 /editor.h | |
| parent | 55d76f8a38a1da911bf3162f2b1f60cf91ec94bb (diff) | |
| download | vis-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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*); |
