El Lun 06 Jun 2005 17:57, Pingveno escribi�:
> In zsh, I'd like to use the "Home", "Delete" and "End" key to get to the
> beginning of a line, do forward delete, and get to the end of the line.
> However, I only see a "~" character entered. Any fix?
>
> --
> Linux User #340304
you have to put something like that in your .zshrc
#Rebind HOME and END to do the decent thing:
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
case $TERM in (xterm*)
bindkey '\eOH' beginning-of-line
bindkey '\eOF' end-of-line
esac
#To discover what keycode is being sent, hit ^v
#and then the key you want to test.
#And DEL too, as well as PGDN and insert:
bindkey '^[[3~' delete-char
bindkey '^[[6~' end-of-history
#bindkey '\e[2~' redisplay
#Now bind pgup to paste the last word of the last command,
bindkey '\e[5~' insert-last-word
--
/*-------------------------------------------------*/
"Sin ideales no puede producirse una realidad buena;
s�lo teniendo ansias de algo mejor, cabe llegar a
ser mejores alg�n d�a." F. Dostoievski
/*-------------------------------------------------*/
___ ___
/\__\ /\__\
/:/ _/_ /:/ _/_
/:/ /\ \ /:/ /\__\
/:/ /::\ \ /:/ /:/ /
/:/__\/\:\__\ /:/_/:/ /
\:\ \ /:/ / \:\/:/ /
\:\ /:/ / \::/__/
\:\/:/ / \:\ \
\::/ / \:\__\
\/__/ \/__/
/*-------------------*/
Gabriel Fern�ndez
[EMAIL PROTECTED]
/*-------------------*/
/*-------------------*/
KMail 1.8
GNU/Linux Gentoo
2.6.11-gentoo-r9
/*-------------------*/
--
[email protected] mailing list