0

As described in this answer is possible to map keystrokes to commands in a terminal. And to do this, there is a specific bash syntax for describes each key, as \e[11~ for F1 or Control-o for ControlO

How not everyone is deductible, I would like to find a way to discover each key associated string. If I just press it in terminal nothing happens for most of non-alphanumeric keys

artu-hnrq
  • 1,343
  • 1
  • 8
  • 30
  • 2
    Bash manual on [Command Line Editing](https://www.gnu.org/software/bash/manual/bash.html#Command-Line-Editing) and especially on [Bindable Readline Commands](https://www.gnu.org/software/bash/manual/bash.html#Bindable-Readline-Commands). – Jonathan Leffler Dec 18 '19 at 02:42

1 Answers1

1

I think you can alternatively install expect, start autoexpect and see what are the codes for your key strokes in generated file.

Z KC
  • 36
  • 3