@J12t if I'm not mistaken most applications handling these use readline and can be configured with inputrc. Different terminal emulator may send different escapes codes for various keys and many distros try to configure /etc/inputrc with sensible defayult that cover most.
You can also have your own ~/.inputrc, just make sure you include or copy the config from /etc/inputrc as it's not implicit.
@J12t if I'm not mistaken most applications handling these use readline and can be configured with inputrc. Different terminal emulator may send different escapes codes for various keys and many distros try to configure /etc/inputrc with sensible defayult that cover most.
You can also have your own ~/.inputrc, just make sure you include or copy the config from /etc/inputrc as it's not implicit.