From caab3855eaafdfef6083ff99416a1b6346a0cc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 8 Sep 2014 10:26:45 +0200 Subject: Add user prompt infrastructure This is implemented by means of an one line height editor window and a set of custom key bindings. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index d6c505f..18bb5b4 100644 --- a/main.c +++ b/main.c @@ -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 */ }; -- cgit v1.2.3