I'm trying to create readline macros and bindings, but struggling to find codes for some key sequences. How to find codes for key combinations, like "\e[1;2A" for Shift-Up, etc?
By the way, I have enabled convert-meta option.
You get the literal value of a keypress if you prefix it by Ctrl+v. For example, pressing Ctrl+v followed by Shift+Up-arrow might generate the text ^[[1;2A in the terminal, where the initial ^[ is a literal escape character (which you would write as \e). In the same manner, an unshifted Right-arrow may generate ^[[C, i.e., \e[C.
echo-control-characters option, but still unable to see some codes, like Alt-Tab, Alt-A ("\eA" works only for esc A though)