3 ms·
I believe this is handled by the tty "canonical" (line input) mode. If you run "stty -a" you'll see a number of special characters defined, like werase = ^W If
by icedchai 4y ago
I believe this is handled by the tty "canonical" (line input) mode. If you run "stty -a" you'll see a number of special characters defined, like werase = ^W
If you set this to something else (stty werase ^O) you'll see it takes effect immediately.
- zokier 4y agobut as it turns out bash does not use canonical mode, and I suspect that applies to many other interactive repls/shells too; probably something readline handles
- icedchai 4y agoYou are correct for bash. If you run "cat" (from "bash"), you'll see that it no longer handles control-A or control-E (handled by readline...), but control-W is still handled by the tty.