I'm trying to map some sequences of keystrokes to commands in BASH, leveraging /etc/inputrc for the sequences. In the top answer here:
The user "sth" says that "\e[Z" is the escape sequence for Shift-Tab.
How can I look up these escape sequences? What, for example, is the sequence for Alt+S, or Ctrl+S?
I've also noticed these sequences in BASH echo coloring. Like, for example:
echo -e "a \e[0;31m B \e[0m k"
Will print a (red) B, between a white 'a' and 'k'. What is this arcana? What does "\e[0;31m" mean? (red, obviously, but why not something like "\e[red]")?