@@ -24,3 +24,49 @@ set mark-symlinked-directories on
2424
2525# Show all instead of beeping first
2626set show-all-if-ambiguous on
27+
28+ # MSYSTEM is emacs based
29+ $if mode = emacs
30+ # Common to Console & RXVT
31+ " \C -? " : backward-kill-line # Ctrl-BackSpace
32+ " \e [2~ " : paste-from-clipboard # "Ins. Key"
33+ " \e [5~ " : beginning-of-history # Page up
34+ " \e [6~ " : end-of-history # Page down
35+
36+ # Mintty
37+ " \e [1;5D " : " \e OD" # Ctrl-Left
38+ " \e [1;5C " : " \e OC" # Ctrl-Right
39+ " \e [1;5A " : " \e OA" # Ctrl-Up
40+ " \e [1;5B " : " \e OB" # Ctrl-Down
41+ " \e [1;3D " : " \e\e [D" # Alt-Left
42+ " \e [1;3C " : " \e\e [C" # Alt-Right
43+
44+ $if term = msys # RXVT
45+ " \e [7~ " : beginning-of-line # Home Key
46+ " \e [8~ " : end-of-line # End Key
47+ " \e [11~ " : display-shell-version # F1
48+ " \e [15~ " : re-read-init-file # F5
49+ " \e [12~ " : " Function Key 2"
50+ " \e [13~ " : " Function Key 3"
51+ " \e [14~ " : " Function Key 4"
52+ " \e [17~ " : " Function Key 6"
53+ " \e [18~ " : " Function Key 7"
54+ " \e [19~ " : " Function Key 8"
55+ " \e [20~ " : " Function Key 9"
56+ " \e [21~ " : " Function Key 10"
57+ $else
58+ # Eh, normal Console is not really cygwin anymore, is it? Using 'else' instead. -mstormo
59+ # $if term=cygwin # Console
60+ " \e [1~ " : beginning-of-line # Home Key
61+ " \e [4~ " : end-of-line # End Key
62+ " \e [3~ " : delete-char # Delete Key
63+ " \e\e [C " : forward-word # Alt-Right
64+ " \e\e [D " : backward-word # Alt-Left
65+ " \e [17~ " : " Function Key 6"
66+ " \e [18~ " : " Function Key 7"
67+ " \e [19~ " : " Function Key 8"
68+ " \e [20~ " : " Function Key 9"
69+ " \e [21~ " : " Function Key 10"
70+ " \e [23~ " : " Function Key 11"
71+ $endif
72+ $endif
0 commit comments