J'utilise Mac + ZSH pour le développeur et Gentoo + ZSH pour le serveur.
Les deux pavés numériques de mon clavier ne peuvent pas saisir de caractères (1,2,3,4,5,6,7,8,9,0,., =, /, *, -, +, enter)
Mais quand je change pour bash, ces touches sont OK.
Dans toutes les autres applications, ces touches sont également OK.
J'utilise le clavier BlackWidow de Razer.
J'ai tendance à ajouter ceci à mon fichier ~/.zshrc
:
# Keypad
# 0 . Enter
bindkey -s "^[Op" "0"
bindkey -s "^[On" "."
bindkey -s "^[OM" "^M"
# 1 2 3
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
# 4 5 6
bindkey -s "^[Ot" "4"
bindkey -s "^[Ou" "5"
bindkey -s "^[Ov" "6"
# 7 8 9
bindkey -s "^[Ow" "7"
bindkey -s "^[Ox" "8"
bindkey -s "^[Oy" "9"
# + - * / =
bindkey -s "^[Ok" "+"
bindkey -s "^[Om" "-"
bindkey -s "^[Oj" "*"
bindkey -s "^[Oo" "/"
bindkey -s "^[OX" "="
Manuel: https://www.gnu.org/software/screen/manual/html_node/Key-Binding.html#Key -Binding
Source: http://superuser.com/questions/742171/zsh-z-shell-numpad-numlock-doesnt-work
bindkey fonctionne bien, mais ce serait bien de le voir fonctionner nativement.
Ressemble à la même chose que # 2654. C'est dû à tout le truc smkx / rmkx, que vous pouvez lire dans # 2735.
Commentaire le plus utile
J'ai tendance à ajouter ceci à mon fichier
~/.zshrc
:Manuel: https://www.gnu.org/software/screen/manual/html_node/Key-Binding.html#Key -Binding
Source: http://superuser.com/questions/742171/zsh-z-shell-numpad-numlock-doesnt-work