Ohmyzsh: Num Pad no puede ingresar

Creado en 14 mar. 2016  ·  3Comentarios  ·  Fuente: ohmyzsh/ohmyzsh

Estoy usando Mac + ZSH para desarrollador y Gentoo + ZSH para servidor.
Ambos, el teclado numérico de mi teclado no puede ingresar ningún carácter (1,2,3,4,5,6,7,8,9,0,., =, /, *, -, +, enter)
Pero cuando cambio a bash, esas teclas están bien.
En cualquier otra aplicación, esas teclas también están bien.

Estoy usando el teclado BlackWidow de Razer.

Bug bindkey

Comentario más útil

Tiendo a agregar esto a mi archivo ~/.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" "="

Manual: https://www.gnu.org/software/screen/manual/html_node/Key-Binding.html#Key -Binding
Fuente: http://superuser.com/questions/742171/zsh-z-shell-numpad-numlock-doesnt-work

Todos 3 comentarios

Tiendo a agregar esto a mi archivo ~/.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" "="

Manual: https://www.gnu.org/software/screen/manual/html_node/Key-Binding.html#Key -Binding
Fuente: http://superuser.com/questions/742171/zsh-z-shell-numpad-numlock-doesnt-work

bindkey funciona bien, pero sería bueno verlo funcionar de forma nativa.

Parece lo mismo que el número 2654. Se debe a todo el asunto smkx / rmkx, sobre el que puede leer en el # 2735.

5113 debería solucionarlo y hacerlo funcionar "de forma nativa".

¿Fue útil esta página
0 / 5 - 0 calificaciones

Temas relacionados

thienedits picture thienedits  ·  3Comentarios

mihnor picture mihnor  ·  3Comentarios

oskargicast picture oskargicast  ·  3Comentarios

cbou picture cbou  ·  3Comentarios

jaredmoody picture jaredmoody  ·  3Comentarios