[PR #10024] [MERGED] Allow trailing semicolon when parsing OSC 9;4 #27849

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10024
Author: @PankajBhojwani
Created: 5/3/2021
Status: Merged
Merged: 5/5/2021
Merged by: @undefined

Base: mainHead: dev/pabhoj/parse_osc_9


📝 Commits (3)

📊 Changes

6 files changed (+76 additions, -8 deletions)

View changed files

📝 src/cascadia/TerminalCore/ITerminalApi.hpp (+1 -1)
📝 src/cascadia/TerminalCore/Terminal.hpp (+3 -1)
📝 src/cascadia/TerminalCore/TerminalApi.cpp (+36 -3)
📝 src/cascadia/TerminalCore/TerminalDispatch.cpp (+3 -3)
📝 src/cascadia/UnitTests_TerminalCore/TerminalApiTest.cpp (+24 -0)
📝 src/terminal/adapter/DispatchTypes.hpp (+9 -0)

📄 Description

Summary of the Pull Request

When we parse OSC 9;4, allow a trailing semicolon (i.e. allow 9;4; or something like 9;4;3;).

PR Checklist

Validation Steps Performed

OSC 9;4 sequences with or without trailing semicolons work


🔄 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/10024 **Author:** [@PankajBhojwani](https://github.com/PankajBhojwani) **Created:** 5/3/2021 **Status:** ✅ Merged **Merged:** 5/5/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/pabhoj/parse_osc_9` --- ### 📝 Commits (3) - [`16ea797`](https://github.com/microsoft/terminal/commit/16ea797f68ef9f248639c28d6c4f4a3350d406d4) allow trailing semicolon - [`90670d2`](https://github.com/microsoft/terminal/commit/90670d25742d34a0c5159bb6bcbdc0f544ff967b) edge cases + tests - [`80f9653`](https://github.com/microsoft/terminal/commit/80f96531b52ac7b344f658facc8486e4e4328170) format ### 📊 Changes **6 files changed** (+76 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalCore/ITerminalApi.hpp` (+1 -1) 📝 `src/cascadia/TerminalCore/Terminal.hpp` (+3 -1) 📝 `src/cascadia/TerminalCore/TerminalApi.cpp` (+36 -3) 📝 `src/cascadia/TerminalCore/TerminalDispatch.cpp` (+3 -3) 📝 `src/cascadia/UnitTests_TerminalCore/TerminalApiTest.cpp` (+24 -0) 📝 `src/terminal/adapter/DispatchTypes.hpp` (+9 -0) </details> ### 📄 Description ## Summary of the Pull Request When we parse OSC 9;4, allow a trailing semicolon (i.e. allow `9;4;` or something like `9;4;3;`). ## PR Checklist * [x] Closes #9960 * [X] Tests added/passed ## Validation Steps Performed OSC 9;4 sequences with or without trailing semicolons work --- <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:24:39 +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#27849