[PR #5383] [MERGED] Add SS3 cursor key encoding to ConPty #26296

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5383
Author: @carlos-zamora
Created: 4/16/2020
Status: Merged
Merged: 4/17/2020
Merged by: @undefined

Base: masterHead: dev/cazamor/conpty/add-input-types


📝 Commits (3)

📊 Changes

4 files changed (+74 additions, -49 deletions)

View changed files

📝 src/terminal/adapter/adaptDispatch.cpp (+16 -40)
📝 src/terminal/parser/InputStateMachineEngine.cpp (+7 -1)
📝 src/terminal/parser/InputStateMachineEngine.hpp (+6 -8)
📝 src/terminal/parser/ut_parser/InputEngineTest.cpp (+45 -0)

📄 Description

Summary of the Pull Request

Adds SS3 cursor encoding for cursor keys and home/end button. Reverts a portion of #4913 that checks for VT Input Mode.

PR Checklist

Validation Steps Performed

  1. Open pwsh
  2. run wsl
  3. execute printf "\e[?1h"
  4. verify keys work
  5. exit back to pwsh
  6. verify keys work still (didn't previously)

Also verified that those keys work in vim when connected to my Raspberry Pi over SSH.


🔄 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/5383 **Author:** [@carlos-zamora](https://github.com/carlos-zamora) **Created:** 4/16/2020 **Status:** ✅ Merged **Merged:** 4/17/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `dev/cazamor/conpty/add-input-types` --- ### 📝 Commits (3) - [`febde50`](https://github.com/microsoft/terminal/commit/febde50da87d758263b6d1230ee158ca9916e08a) add SS3 enc. for arrows, home, end - [`3e94cd7`](https://github.com/microsoft/terminal/commit/3e94cd75b2098b1affd60cd07699ccd8261838a1) revert the hacky bit of #4913 - [`3a7560e`](https://github.com/microsoft/terminal/commit/3a7560e6604c9385f3034487b06fb6427c365c4c) add test ### 📊 Changes **4 files changed** (+74 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `src/terminal/adapter/adaptDispatch.cpp` (+16 -40) 📝 `src/terminal/parser/InputStateMachineEngine.cpp` (+7 -1) 📝 `src/terminal/parser/InputStateMachineEngine.hpp` (+6 -8) 📝 `src/terminal/parser/ut_parser/InputEngineTest.cpp` (+45 -0) </details> ### 📄 Description ## Summary of the Pull Request Adds SS3 cursor encoding for cursor keys and home/end button. Reverts a portion of #4913 that checks for VT Input Mode. ## PR Checklist * [X] Closes #4873 ## Validation Steps Performed 1. Open pwsh 2. run `wsl` 3. execute `printf "\e[?1h"` 4. verify keys work 5. exit back to pwsh 6. verify keys work still (didn't previously) Also verified that those keys work in vim when connected to my Raspberry Pi over SSH. --- <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:15:12 +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#26296