Make Home/End/Delete keys work in Solaris bash


Posted:   |  More posts about fix howto keyboard software solaris solved

This is most frustrating thing that I experience when I encounter Solaris bash prompt: the Home, End and Delete keyboard keys will not work because for some reason Solaris doesn’t understand them as useful keys. But there is the way to enable those keys!

Add following lines to your ~/.bashrc file:

# home key
bind '"e[1~":beginning-of-line'
# del key
bind '"e[3~":delete-char'
# end key
bind '"e[4~":end-of-line'
# pgup key
bind '"e[5~":history-search-forward'
# pgdn key
bind '"e[6~":history-search-backward'

Save and source file. Now keys will work as they should.

Contents © 2013 Aleksey Maksimov - Powered by Nikola