aboutsummaryrefslogtreecommitdiff
path: root/vis.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-01 11:28:16 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-01 12:38:31 +0200
commit8b31028096190ce0339e984bf36df5840d868990 (patch)
tree55ae259a65858dd6fe1452a575874d91e8714464 /vis.h
parent1724f24a0c8795e461f7acf8ca94ecae145da96b (diff)
downloadvis-8b31028096190ce0339e984bf36df5840d868990.tar.gz
vis-8b31028096190ce0339e984bf36df5840d868990.tar.xz
vis: further cleanup input handling, introduce vis_keys_feed API
Diffstat (limited to 'vis.h')
-rw-r--r--vis.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/vis.h b/vis.h
index 8c6133f..8d9681e 100644
--- a/vis.h
+++ b/vis.h
@@ -429,14 +429,12 @@ const char *vis_keys_next(Vis*, const char *keys);
* queue (or a previously recorded macro) to key handling functions (see struct
* KeyAction) which consume the input.
*
- * this functions pushes/appends further input to the end of the input queue
- * and immediately tries to interpret them */
-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);
+ * this functions pushes/appends further input to the end of the input queue.
+ * if it is called from within a key handling function itself, the fed keys
+ * will be interpreted once the key handler returns. otherwhise the keys are
+ * immediately interpreted as if they were entered from a user. */
+void vis_keys_feed(Vis*, const char *keys);
+
/* 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);