You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The regex usedforces quotes to surround the key sequence, otherwise key presses aren't even interpreted. Unfortunately this means the readline standard way of specifying modifier keys (Ctrl-x, Meta-y, C-o, M-e etc) don't get picked up.
Oh, and "Meta-c" (with quotes) is not the same thing as "\ec".
An Emacs‐style notation is used to denote keystrokes. Control keys are denoted by C-key, e.g., C-n means Control-N. Similarly, meta keys are denoted by M-key, so M-x means Meta-X. (On keyboards without a meta key, M-x means ESC x, i.e., press the Escape key then the x key. This makes ESC the metaprefix. The combination M-C-x means ESC-Control-x, or press the Escape key then hold the Control key while pressing the x key.)
Description
The regex used forces quotes to surround the key sequence, otherwise key presses aren't even interpreted. Unfortunately this means the readline standard way of specifying modifier keys (
Ctrl-x
,Meta-y
,C-o
,M-e
etc) don't get picked up.Oh, and
"Meta-c"
(with quotes) is not the same thing as"\ec"
.In my
~/.inputrc
:Opening up
rails console
and typing Alt+c does not produce any output.Expected outcome is to insert
.class.name
at the current cursor position.If I remove the
$if
/$endif
lines, the keymap will apply to Bash, and indeed pressing Alt+c in Bash inserts.class.name
onto the current line.Terminal Emulator
PuTTY 0.79 for Windows.
Just to be sure input isn't getting munged:
xxd
EnterAlt+cEnterCtrl+dThe text was updated successfully, but these errors were encountered: