[Fix #45] Set the terminal erase sequence

This commit is contained in:
Sorin Ionescu 2012-03-18 18:05:50 -04:00
parent 03e4cfd3b1
commit 9c611ce7e5

View file

@ -217,7 +217,8 @@ unset keymap
[[ -n "$keyinfo[Delete]" ]] && \
bindkey "$keyinfo[Delete]" delete-char
[[ -n "$keyinfo[Backspace]" ]] && \
bindkey "$keyinfo[Backspace]" backward-delete-char
bindkey "$keyinfo[Backspace]" backward-delete-char && \
stty erase "$keyinfo[Backspace]"
[[ -n "$keyinfo[Left]" ]] && \
bindkey "$keyinfo[Left]" backward-char