3 ms·
You can configure your terminal to send ^? instead of ^H (and use `stty erase '^?'` to configure your tty), but AFAIK there's no difference in the terminal betw
by philsnow 7y ago
You can configure your terminal to send ^? instead of ^H (and use `stty erase '^?'` to configure your tty), but AFAIK there's no difference in the terminal between holding control while hitting backspace and not holding control (whether you have it set up to send the ^H or ^?), because of how keys map to ascii codes (see [0]).
Your terminal either sends ^H (0x08) or ^? (0x3f) (or really anything else you desire, if you can set up your terminal that way) when you hit backspace. control plus either of those keys would mean subtracting 0x40 from them, which is either negative or wraps around for both of them, so it's nonsensical.
Whereas, the GUI interprets the keyboard completely differently and allows you to express keys like "control + backspace". This is the main reason I prefer using gui versions of Emacs.
[0] https://en.wikipedia.org/wiki/Control_character#How_control_characters_map_to_keyboards https://en.wikipedia.org/wiki/Control_character#How_control_...