-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
whenever a terminal special character is bound in .inputrc, clear it from the terminals c_cc[] #111
Comments
Is there any other readline program that does this? If not, why not? |
cf this StackOverflow question. There are a few programs ( To see why this can be problematic, consider that there are two ways keypresses like
In short: forwarding keypresses directly is more transparent and reliable than "translating" them into signals and forwarding those. A drawback is that it needs a few lines in But forwarding only works if those keypresses are not caught by
Finally:
|
Even for |
Some users are surprised that binding a terminal special key like
CTRL+C
in.inputrc
doesn't work. Of course,rlwrap
never sees the special key because it is always caught by the terminal driver. An easy remedy would be to issue astty intr undef
before launchingrlwrap
, but in many (most?) cases, therlwrap
ped command will re-instate the special key, which will makerlwrap
do the same (rlwrap
mirrors the wrapped command's terminal settings), putting us back at square one.To prevent this unpleasant surprise,
rlwrap
could (should?) take notice and clear the special key fromc_cc[]
, which clearly is what the user expects.Examples (probably): #101, #106
The text was updated successfully, but these errors were encountered: