Add repeatedly shell function
Handle rxvt-style key codes correctly