diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-08 10:26:45 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-08 10:26:45 +0200 |
| commit | caab3855eaafdfef6083ff99416a1b6346a0cc18 (patch) | |
| tree | d9dff0b60eb444dd876e3a84852acf3e77bd6001 /main.c | |
| parent | 16cc6025a0bef7875a9f3426077beecc71cabde6 (diff) | |
| download | vis-caab3855eaafdfef6083ff99416a1b6346a0cc18.tar.gz vis-caab3855eaafdfef6083ff99416a1b6346a0cc18.tar.xz | |
Add user prompt infrastructure
This is implemented by means of an one line height editor window and
a set of custom key bindings.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,8 +43,8 @@ struct Mode { KeyBinding *bindings; const char *name; bool common_prefix; - void (*enter)(void); - void (*leave)(void); + void (*enter)(Mode *old); + void (*leave)(Mode *new); bool (*unknown)(Key *key0, Key *key1); /* unknown key for this mode, return value determines whether parent modes will be checked */ bool (*input)(const char *str, size_t len); /* unknown key for this an all parent modes */ }; |
