page up/down print ~ instead of history search in terminal

Posted by Desmond on Super User See other posts from Super User or by Desmond
Published on 2012-11-29T10:29:41Z Indexed on 2012/11/29 11:09 UTC
Read the original article Hit count: 228

Filed under:
|
|
|

I am on a Macbook Pro with mac os x 10.8.2

I have set:

page up: \033[5~
page down: \033[6~

in terminal keyboard settings (pressing esc to get \033).

My ~/.xinputrc is:

# Be 8 bit clean.

set input-meta on
set output-meta on
set convert-meta off

# Auto completion options
set show-all-if-ambiguous on
set completion-ignore-case on

# Keybindings
"\e[1~": beginning-of-line       # Home key
"\e[4~": end-of-line             # End key
"\e[5~": history-search-backward # Page Up
"\e[6~": history-search-forward  # Page Down
"\e[3~": delete-char             # Delete key
"\e[5C": forward-word            # Ctrl+right
"\e[5D": backward-word           # Ctrl+left

I am just following a guide found on internet (actually there are a lot of guide really similar): http://macimproved.wordpress.com/2010/01/04/fix-page-updown-home-end-in-terminal/

Unfortunately, the only (terrific) result is that when I press page up (fn + up arrow) just a "~" is printed in the terminal.

© Super User or respective owner

Related posts about osx

Related posts about terminal