home, end, delete, pageup, pagedown with ksh

Solution 1:

set -o emacs

should work.

Solution 2:

I made a file with this and others resources(like keys, functions, colors and a .bash_logout similar in ksh named .ksh_logout.

Check my dotfiles repository in github: https://bitbucket.org/afsec/dotfiles The content of file .ksh_keys.

# Activate Delete
bind '^[[3~'=delete-char-forward

# Activate Home
bind '^[[1~'=beginning-of-line

# Activate End
bind '^[[4~'=end-of-line