News for hackers. Stuff that matters.
Re:How Unix erases things when you type a backspace while en... by WildUtah on Sunday February 05, 2017 @02:45AM (#13571391)
But try remapping C-w in bash. The tty remaps it on the very next line. You'll have to stty werase unmap it to be able to change it in your read line .inputrc.

So the tty cooking still has charge of some things.

Re:How Unix erases things when you type a backspace while en... by DSMan195276 on Sunday February 05, 2017 @06:54AM (#13571973)
I think that's actually just bash messing with you. Bash implements it's own erase-word and binds it to whatever is set to werase in the terminal, so if you don't clear the werase entry bash will just keep rebinding it every new prompt. It's definitely not the kernel's doing - for example vim, which also uses raw mode, can use C-w just fine, and the functionality bash gives to C-w is different from what the kernel provides.