diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-01-21 19:56:39 -0800 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-02-28 18:36:34 -0800 |
commit | f2246dfb343bea19beb176fb2cc534f85513b2eb (patch) | |
tree | f95f0c4f4f48d445c1d561aa0986d2b98cdecec5 /src/input.h | |
parent | b41b96233616f26e52663c133f7a29d32b0e9142 (diff) |
reduce number of Unicode private-use characters
This narrows the range of Unicode codepoints fish reserves for its own
use from U+E000 thru U+F8FE (6399 codepoints) to U+F600 thru U+F73F (320
codepoints). This is still not ideal since fish shouldn't be using any
Unicode private-use codepoints but it's a step in the right direction.
This partially addresses issue #2684.
Diffstat (limited to 'src/input.h')
-rw-r--r-- | src/input.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/src/input.h b/src/input.h index 36d49a51..47315c1c 100644 --- a/src/input.h +++ b/src/input.h @@ -16,77 +16,11 @@ inputrc information for key bindings. #include "env.h" #include "input_common.h" - #define DEFAULT_BIND_MODE L"default" #define FISH_BIND_MODE_VAR L"fish_bind_mode" -/** - Key codes for inputrc-style keyboard functions that are passed on - to the caller of input_read() - - NOTE: IF YOU MODIFY THIS YOU MUST UPDATE THE name_arr AND code_arr VARIABLES TO MATCH! -*/ -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_FORWARD_BIGWORD, - R_BACKWARD_BIGWORD, - 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_COMPLETE_AND_SEARCH, - R_BEGINNING_OF_HISTORY, - R_END_OF_HISTORY, - R_BACKWARD_KILL_LINE, - R_KILL_WHOLE_LINE, - R_KILL_WORD, - R_KILL_BIGWORD, - R_BACKWARD_KILL_WORD, - R_BACKWARD_KILL_PATH_COMPONENT, - R_BACKWARD_KILL_BIGWORD, - R_HISTORY_TOKEN_SEARCH_BACKWARD, - R_HISTORY_TOKEN_SEARCH_FORWARD, - R_SELF_INSERT, - R_TRANSPOSE_CHARS, - R_TRANSPOSE_WORDS, - R_UPCASE_WORD, - R_DOWNCASE_WORD, - R_CAPITALIZE_WORD, - R_VI_ARG_DIGIT, - R_VI_DELETE_TO, - R_EXECUTE, - R_BEGINNING_OF_BUFFER, - R_END_OF_BUFFER, - R_REPAINT, - R_FORCE_REPAINT, - R_UP_LINE, - R_DOWN_LINE, - R_SUPPRESS_AUTOSUGGESTION, - R_ACCEPT_AUTOSUGGESTION, - R_BEGIN_SELECTION, - R_END_SELECTION, - R_KILL_SELECTION, - R_FORWARD_JUMP, - R_BACKWARD_JUMP, - R_AND, - R_CANCEL -}; - wcstring describe_char(wint_t c); -#define R_MIN R_NULL -#define R_MAX R_CANCEL - /** Initialize the terminal by calling setupterm, and set up arrays used by readch to detect escape sequences for special keys. |