Add support for DECBKM (Backarrow Key Mode) #18342

Closed
opened 2026-01-31 06:10:55 +00:00 by claunia · 3 comments
Owner

Originally created by @j4james on GitHub (Aug 30, 2022).

Description of the new feature/enhancement

Backarrow Key mode controls whether the backspace key should produces a BS or DEL control sequence. This was a mode supported by the VT320 and later terminals.

I initially thought this would be useful for people that were complaining about the backspace key not sending what they expected it to, but having reread some of those issues I don't think they're actually using the VT input mode, so I'm having my doubts about that now.

Someone might still find it useful, though, and if nothing else it improves our VT conformance, so I'm happy to create a PR for it if you want it.

Proposed technical implementation details (optional)

I've currently implemented it as another section in the TerminalInput::HandleKey method, treating VK_BACK (and the various modifier combinations) as a special case. Previously the VK_BACK key was handled in a number of different mapping tables.

This would also fix the Alt+Shift combos which aren't currently correct.

Originally created by @j4james on GitHub (Aug 30, 2022). # Description of the new feature/enhancement Backarrow Key mode controls whether the backspace key should produces a `BS` or `DEL` control sequence. This was a mode supported by the VT320 and later terminals. I initially thought this would be useful for people that were complaining about the backspace key not sending what they expected it to, but having reread some of those issues I don't think they're actually using the VT input mode, so I'm having my doubts about that now. Someone might still find it useful, though, and if nothing else it improves our VT conformance, so I'm happy to create a PR for it if you want it. # Proposed technical implementation details (optional) I've currently implemented it as another section in the `TerminalInput::HandleKey` method, treating `VK_BACK` (and the various modifier combinations) as a special case. Previously the `VK_BACK` key was handled in a number of different mapping tables. This would also fix the `Alt`+`Shift` combos which aren't currently correct.
Author
Owner

@zadjii-msft commented on GitHub (Aug 31, 2022):

Sems sensible to me.

How weird that we were just having a discussion about the "compatibility" tab in the gnome-terminal settings, which this seems slightly relevant to.

@zadjii-msft commented on GitHub (Aug 31, 2022): Sems sensible to me. How weird that we were just having a discussion about the "compatibility" tab in the gnome-terminal settings, which this seems slightly relevant to.
Author
Owner

@DHowett commented on GitHub (Aug 31, 2022):

I'm definitely in favor of this. Thanks @j4james 😄

@DHowett commented on GitHub (Aug 31, 2022): I'm definitely in favor of this. Thanks @j4james :smile:
Author
Owner

@ghost commented on GitHub (Sep 13, 2022):

:tada:This issue was addressed in #13894, which has now been successfully released as Windows Terminal Preview v1.16.252.🎉

Handy links:

@ghost commented on GitHub (Sep 13, 2022): :tada:This issue was addressed in #13894, which has now been successfully released as `Windows Terminal Preview v1.16.252`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.16.252) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18342