aboutsummaryrefslogtreecommitdiffhomepage
path: root/input.h
diff options
context:
space:
mode:
authorGravatar Julian Aron Prenner <julian@linux4you.it>2014-01-23 10:23:04 +0100
committerGravatar Julian Aron Prenner <julian@linux4you.it>2014-01-23 10:23:04 +0100
commit844b01cb6be2ab3a3f7070112c94604b43710835 (patch)
tree0edb77427d3d7a49f2f8cdecc67f2f6da160611d /input.h
parent45465e0c450eb2e73ef43a553fe3bb0f72b53a7b (diff)
Add 'and' input function; fixes a bug with t,T
'and' will prevent later input functions from being executed if the previous one did not succeed (e.g. a jump to a char not on the command line)
Diffstat (limited to 'input.h')
-rw-r--r--input.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/input.h b/input.h
index a8e2dffb..e29b0882 100644
--- a/input.h
+++ b/input.h
@@ -66,12 +66,13 @@ enum
R_END_SELECTION,
R_KILL_SELECTION,
R_FORWARD_JUMP,
- R_BACKWARD_JUMP
+ R_BACKWARD_JUMP,
+ R_AND
}
;
#define R_MIN R_NULL
-#define R_MAX R_BACKWARD_JUMP
+#define R_MAX R_AND
/**
Initialize the terminal by calling setupterm, and set up arrays
@@ -150,6 +151,12 @@ bool input_set_bind_mode(const wchar_t *bind_mode);
wchar_t input_function_pop_arg();
+
+/**
+ Sets the return status of the most recently executed input function
+*/
+void input_function_set_status(bool status);
+
/**
Return the sequence for the terminfo variable of the specified name.