How to print keypresses in .inputrc format

inputrckeyboardkeyboard shortcuts

Which application can I use to figure out what to put in .inputrc for any custom keyboard shortcut? I've tried a few, and none of them seem to be usable:

showkey, showkey -a and read just print ' if you press Ctrl'.

xev prints them separately, and doesn't print anything that seems usable for .inputrc.

Best Answer

I believe ctrl-' will not be passed to applications in the console. It also doesn't show up in xev.

It may be the input system or even PC hardware, but without trickery some of the key combinations may be impossible to detect.

Related Question