[PR #1974] [MERGED] Mark ESC as handled so that it doesn't come back in CharacterHandler #24738

Open
opened 2026-01-31 09:05:05 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/1974
Author: @DHowett
Created: 7/15/2019
Status: Merged
Merged: 7/16/2019
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/escesc


📝 Commits (3)

  • 906ce09 Mark ESC as handled so that it doesn't come back in CharacterHandler
  • 8bdaad3 Merge branch 'master' into dev/duhowett/escesc
  • c612580 ...

📊 Changes

2 files changed (+9 additions, -0 deletions)

View changed files

📝 src/cascadia/TerminalCore/Terminal.cpp (+8 -0)
📝 src/inc/unicode.hpp (+1 -0)

📄 Description

Fixes #1295.

Summary of the Pull Request

There are four places where we could possibly fix this.

  1. mark it handled manually in KeyDownHandler (like Tab)
  2. "handle it manually" in TerminalCore (like Ctrl+Space and friends)
  3. ignore it in CharacterHandler (like Bksp and Del)
  4. "handle it automatically" in TerminalCore by removing it from TerminalInput
    • i cannot figure out why it's in there -- it's in the keypad numeric and keypad application mappings, but it doesn't actually get remapped?

fad7638bb3/src/terminal/input/terminalInput.cpp (L55)
fad7638bb3/src/terminal/input/terminalInput.cpp (L88)

I just chose one. Why not here? We should document what each of those does and why they are they way they are.

PR Checklist


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/1974 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 7/15/2019 **Status:** ✅ Merged **Merged:** 7/16/2019 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/escesc` --- ### 📝 Commits (3) - [`906ce09`](https://github.com/microsoft/terminal/commit/906ce0938bfb49f970cb973035e3959ba950b4aa) Mark ESC as handled so that it doesn't come back in CharacterHandler - [`8bdaad3`](https://github.com/microsoft/terminal/commit/8bdaad307f55addb488900b28306379643c2c3b4) Merge branch 'master' into dev/duhowett/escesc - [`c612580`](https://github.com/microsoft/terminal/commit/c612580b30ab593524186014e218b34c97ed79a5) ... ### 📊 Changes **2 files changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalCore/Terminal.cpp` (+8 -0) 📝 `src/inc/unicode.hpp` (+1 -0) </details> ### 📄 Description Fixes #1295. ## Summary of the Pull Request There are four places where we could possibly fix this. 1. mark it handled manually in KeyDownHandler (like <kbd>Tab</kbd>) 2. "handle it manually" in TerminalCore (like <kbd>Ctrl+Space</kbd> and friends) 3. ignore it in CharacterHandler (like <kbd>Bksp</kbd> and <kbd>Del</kbd>) 4. "handle it automatically" in TerminalCore by removing it from TerminalInput * i cannot figure out why it's in there -- it's in the keypad numeric _and_ keypad application mappings, but it doesn't actually get remapped? https://github.com/microsoft/terminal/blob/fad7638bb39d5c5107431605a1adf50010f8646a/src/terminal/input/terminalInput.cpp#L55 https://github.com/microsoft/terminal/blob/fad7638bb39d5c5107431605a1adf50010f8646a/src/terminal/input/terminalInput.cpp#L88 I just chose one. Why not here? We should document what each of those does and why they are they way they are. ## PR Checklist * [x] Closes #1295 * [x] I work here * [ ] I have not yet added tests, so the box to the left is as empty as can be --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:05:05 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24738