How to find out keystroke bash associated textual representation?
Asked Answered
D

1

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

Dryad answered 18/12, 2019 at 2:36 Comment(1)
Bash manual on Command Line Editing and especially on Bindable Readline Commands.Pulcheria
H
1

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

Heretical answered 18/12, 2019 at 2:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.