diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-30 16:45:49 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-01 12:37:19 +0200 |
| commit | 1724f24a0c8795e461f7acf8ca94ecae145da96b (patch) | |
| tree | f62e953270886eba21800ba6a9349096142763c3 /vis.h | |
| parent | c8d1e2296688a77d7b0024cc572164dae694cd87 (diff) | |
| download | vis-1724f24a0c8795e461f7acf8ca94ecae145da96b.tar.gz vis-1724f24a0c8795e461f7acf8ca94ecae145da96b.tar.xz | |
vis: cleanup input handling, improve macro replay
Diffstat (limited to 'vis.h')
| -rw-r--r-- | vis.h | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -431,13 +431,12 @@ const char *vis_keys_next(Vis*, const char *keys); * * this functions pushes/appends further input to the end of the input queue * and immediately tries to interpret them */ -const char *vis_keys_push(Vis*, const char *input); -/* inject new input keys at the position indicated by a pointer to a valid, not - * yet consumed key from the current input queue. does not try to interpret the - * new queue content. - * - * typically only called from within key handling functions */ -bool vis_keys_inject(Vis*, const char *pos, const char *input); +void vis_keys_input(Vis*, const char *input); +/* like the above, but only pushes the input to the input queue, does *not* + * try to interpret the contents of the input queue. intended to be used from + * key handlers. the remaining queue content will be interpreted once the + * key handler returns. */ +void vis_keys_push(Vis*, const char *input); /* inform vis that a signal occured, the return value indicates whether the signal * was handled by vis */ bool vis_signal_handler(Vis*, int signum, const siginfo_t *siginfo, const void *context); |
