[PR #14198] [MERGED] Add a maximum OSC 8 URI length of 2MB following iTerm2 #29995

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/14198
Author: @DHowett
Created: 10/12/2022
Status: Merged
Merged: 10/12/2022
Merged by: @undefined

Base: mainHead: dev/duhowett/why_do_you_build_me_up,_buttercup,_just_to_truncate_me


📝 Commits (1)

  • c7ebfa9 Add a maximum OSC 8 URI length of 2MB following iTerm2

📊 Changes

3 files changed (+6 additions, -2 deletions)

View changed files

📝 src/cascadia/TerminalControl/ControlCore.cpp (+3 -1)
📝 src/terminal/parser/OutputStateMachineEngine.cpp (+1 -1)
📝 src/terminal/parser/OutputStateMachineEngine.hpp (+2 -0)

📄 Description

c0b2f488c1

Unlike iTerm2, we're not planning on making it configurable.

This commit also adds a max length of 1024 characters on the "display URI" that we pass up to XAML, so as to not inundate the UI.

Fixes #14200


🔄 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/14198 **Author:** [@DHowett](https://github.com/DHowett) **Created:** 10/12/2022 **Status:** ✅ Merged **Merged:** 10/12/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/duhowett/why_do_you_build_me_up,_buttercup,_just_to_truncate_me` --- ### 📝 Commits (1) - [`c7ebfa9`](https://github.com/microsoft/terminal/commit/c7ebfa9299b40c3afdef4d43d9b00b32263d64e4) Add a maximum OSC 8 URI length of 2MB following iTerm2 ### 📊 Changes **3 files changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalControl/ControlCore.cpp` (+3 -1) 📝 `src/terminal/parser/OutputStateMachineEngine.cpp` (+1 -1) 📝 `src/terminal/parser/OutputStateMachineEngine.hpp` (+2 -0) </details> ### 📄 Description https://github.com/gnachman/iTerm2/commit/c0b2f488c1bde541676edd50ed9d3cb12a061275 Unlike iTerm2, we're not planning on making it configurable. This commit also adds a max length of 1024 characters on the "display URI" that we pass up to XAML, so as to not inundate the UI. Fixes #14200 --- <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:38: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#29995