home, end, delete, pageup, pagedown with ksh

Posted by Nicolas on Server Fault See other posts from Server Fault or by Nicolas
Published on 2009-10-12T21:47:09Z Indexed on 2010/04/13 11:03 UTC
Read the original article Hit count: 480

Filed under:
|
|

Hello.

I want to use home, end, delete, pageup, pagedown with ksh. My TERM is xterm-color. These keys works fine with tcsh and zsh, but not with ksh (print a tilda ~)

I found this:

bind '^[[3'=prefix-2 bind '^[[3~'=delete-char-forward bind '^[[1'=prefix-2 bind '^[[1~'=beginning-of-line bind '^[[4'=prefix-2 bind '^[[4~'=end-of-line

But when I set one bindkey, the last does not work anymore.

How can I use these keys in ksh with a .kshrc ?

Thanks.

© Server Fault or respective owner

Related posts about openbsd

Related posts about shell