aboutsummaryrefslogtreecommitdiffhomepage
path: root/input.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
commit9992b8eb0e3366ff8a3948aa0b66a19c3c12c737 (patch)
tree6dda0fef85812016fbba9ea067c9d586092b506d /input.h
parentbab69f26724028d16054a3daf5c78aad7c67bb2d (diff)
Apply new indentation, brace, and whitespace style
Diffstat (limited to 'input.h')
-rw-r--r--input.h88
1 files changed, 44 insertions, 44 deletions
diff --git a/input.h b/input.h
index 78b17248..69f7299e 100644
--- a/input.h
+++ b/input.h
@@ -17,40 +17,40 @@ inputrc information for key bindings.
*/
enum
{
- R_BEGINNING_OF_LINE = R_NULL+10, /* This give input_common ten slots for lowlevel keycodes */
- R_END_OF_LINE,
- R_FORWARD_CHAR,
- R_BACKWARD_CHAR,
- R_FORWARD_WORD,
- R_BACKWARD_WORD,
- R_HISTORY_SEARCH_BACKWARD,
- R_HISTORY_SEARCH_FORWARD,
- R_DELETE_CHAR,
- R_BACKWARD_DELETE_CHAR,
- R_KILL_LINE,
- R_YANK,
- R_YANK_POP,
- R_COMPLETE,
- R_BEGINNING_OF_HISTORY,
- R_END_OF_HISTORY,
- R_BACKWARD_KILL_LINE,
- R_KILL_WHOLE_LINE,
- R_KILL_WORD,
- R_BACKWARD_KILL_WORD,
- R_DUMP_FUNCTIONS,
- R_HISTORY_TOKEN_SEARCH_BACKWARD,
- R_HISTORY_TOKEN_SEARCH_FORWARD,
- R_SELF_INSERT,
- R_VI_ARG_DIGIT,
- R_VI_DELETE_TO,
- R_EXECUTE,
- R_BEGINNING_OF_BUFFER,
- R_END_OF_BUFFER,
- R_REPAINT,
- R_UP_LINE,
- R_DOWN_LINE,
- R_SUPPRESS_AUTOSUGGESTION,
- R_ACCEPT_AUTOSUGGESTION
+ R_BEGINNING_OF_LINE = R_NULL+10, /* This give input_common ten slots for lowlevel keycodes */
+ R_END_OF_LINE,
+ R_FORWARD_CHAR,
+ R_BACKWARD_CHAR,
+ R_FORWARD_WORD,
+ R_BACKWARD_WORD,
+ R_HISTORY_SEARCH_BACKWARD,
+ R_HISTORY_SEARCH_FORWARD,
+ R_DELETE_CHAR,
+ R_BACKWARD_DELETE_CHAR,
+ R_KILL_LINE,
+ R_YANK,
+ R_YANK_POP,
+ R_COMPLETE,
+ R_BEGINNING_OF_HISTORY,
+ R_END_OF_HISTORY,
+ R_BACKWARD_KILL_LINE,
+ R_KILL_WHOLE_LINE,
+ R_KILL_WORD,
+ R_BACKWARD_KILL_WORD,
+ R_DUMP_FUNCTIONS,
+ R_HISTORY_TOKEN_SEARCH_BACKWARD,
+ R_HISTORY_TOKEN_SEARCH_FORWARD,
+ R_SELF_INSERT,
+ R_VI_ARG_DIGIT,
+ R_VI_DELETE_TO,
+ R_EXECUTE,
+ R_BEGINNING_OF_BUFFER,
+ R_END_OF_BUFFER,
+ R_REPAINT,
+ R_UP_LINE,
+ R_DOWN_LINE,
+ R_SUPPRESS_AUTOSUGGESTION,
+ R_ACCEPT_AUTOSUGGESTION
}
;
@@ -87,7 +87,7 @@ wint_t input_readch();
characters that input_readch will return before actually reading from fd
0.
*/
-void input_unreadch( wint_t ch );
+void input_unreadch(wint_t ch);
/**
@@ -96,22 +96,22 @@ void input_unreadch( wint_t ch );
\param sequence the sequence to bind
\param command an input function that will be run whenever the key sequence occurs
*/
-void input_mapping_add( const wchar_t *sequence, const wchar_t *command );
+void input_mapping_add(const wchar_t *sequence, const wchar_t *command);
/**
Insert all mapping names into the specified wcstring_list_t
*/
-void input_mapping_get_names( wcstring_list_t &lst );
+void input_mapping_get_names(wcstring_list_t &lst);
/**
Erase binding for specified key sequence
*/
-bool input_mapping_erase( const wchar_t *sequence );
+bool input_mapping_erase(const wchar_t *sequence);
/**
Gets the command bound to the specified key sequence. Returns true if it exists, false if not.
*/
-bool input_mapping_get( const wcstring &sequence, wcstring &cmd );
+bool input_mapping_get(const wcstring &sequence, wcstring &cmd);
/**
Return the sequence for the terminfo variable of the specified name.
@@ -119,20 +119,20 @@ bool input_mapping_get( const wcstring &sequence, wcstring &cmd );
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 );
+const wchar_t *input_terminfo_get_sequence(const wchar_t *name);
/** Return the name of the terminfo variable with the specified sequence */
-bool input_terminfo_get_name( const wcstring &seq, wcstring &name );
+bool input_terminfo_get_name(const wcstring &seq, wcstring &name);
/** Return a list of all known terminfo names */
-wcstring_list_t input_terminfo_get_names( bool skip_null );
+wcstring_list_t input_terminfo_get_names(bool skip_null);
/** Returns the input function code for the given input function name. */
-wchar_t input_function_get_code( const wcstring &name );
+wchar_t input_function_get_code(const wcstring &name);
/** Returns a list of all existing input function names */
-wcstring_list_t input_function_get_names( void );
+wcstring_list_t input_function_get_names(void);
/** Updates our idea of whether we support term256 */
void update_fish_term256();