aboutsummaryrefslogtreecommitdiffhomepage
path: root/input.h
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-09-26 02:14:47 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-09-26 02:14:47 +1000
commitcf8e746d0c04aec16df8e69d2987c785cb510d46 (patch)
treef20053b4e7370efc11e6c8277e2a220b7a386e69 /input.h
parentaf9c2067e1fecb10ab7540e7f7682211448b81c0 (diff)
First stab at dropping all support for readlines inputrc files and instead using an internal system for performing keybinding.
darcs-hash:20070925161447-75c98-1feaef88a4b518badb7879f598f06ab650a8f93b.gz
Diffstat (limited to 'input.h')
-rw-r--r--input.h40
1 files changed, 28 insertions, 12 deletions
diff --git a/input.h b/input.h
index 32406b28..575c34cb 100644
--- a/input.h
+++ b/input.h
@@ -99,26 +99,42 @@ void input_unreadch( wint_t ch );
\param d a description of the sequence
\param cmd an input function that will be run whenever the key sequence occurs
*/
-void add_mapping( const wchar_t *mode, const wchar_t *s, const wchar_t * d, const wchar_t *cmd );
+void input_mapping_add( const wchar_t *sequence, const wchar_t *cmd );
+
+void input_mapping_get_names( array_list_t *list );
+
+int input_mapping_erase( const wchar_t *sequence );
+
+const wchar_t *input_mapping_get( const wchar_t *sequence );
/**
- Sets the mode keybindings.
-*/
-void input_set_mode( wchar_t *name );
+ Return the sequence for the terminfo variable of the specified name.
+
+ If no terminfo variable of the specified name could be found, return 0 and set errno to ENOENT.
+ If the terminfo variable does not have a value, return 0 and set errno to EILSEQ.
+ */
+const wchar_t *input_terminfo_get_sequence( const wchar_t *name );
/**
- Sets the application keybindings
-*/
-void input_set_application( wchar_t *name );
+ Return the name of the terminfo variable with the specified sequence
+ */
+const wchar_t *input_terminfo_get_name( const wchar_t *seq );
/**
- Parse a single line of inputrc information.
-*/
-void input_parse_inputrc_line( wchar_t *cmd );
+ Return a list of all known terminfo names
+ */
+void input_terminfo_get_names( array_list_t *lst, int skip_null );
+
/**
- Returns the function for the given function name.
+ Returns the input function code for the given input function name.
*/
-wchar_t input_get_code( const wchar_t *name );
+wchar_t input_function_get_code( const wchar_t *name );
+
+/**
+ Returns a list of all existing input function names
+ */
+void input_function_get_names( array_list_t *lst );
+
#endif