[PR #9034] [MERGED] Add support for paste filtering and bracketed paste mode #27394

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/9034
Author: @skyline75489
Created: 2/4/2021
Status: ✅ Merged
Merged: 2/8/2021
Merged by: @undefined

Base: main ← Head: chesterliu/dev/paste-converter-2021-edition


📝 Commits (8)

📊 Changes

7 files changed (+202 additions, -55 deletions)

View changed files

📝 .github/actions/spelling/excludes.txt (+1 -0)
📝 src/cascadia/TerminalControl/TermControl.cpp (+3 -55)
📝 src/cascadia/TerminalCore/Terminal.cpp (+18 -0)
📝 src/cascadia/TerminalCore/Terminal.hpp (+3 -0)
📝 src/types/inc/utils.hpp (+13 -0)
📝 src/types/ut_types/UtilsTests.cpp (+83 -0)
📝 src/types/utils.cpp (+81 -0)

📄 Description

This adds "paste filtering" & "bracketed paste mode" to the Windows
Terminal.

I've moved the paste handling code in TerminalControl to
Microsoft::Console::Util to be able to easily test it, and the paste
transformer from TerminalControl to TerminalCore.

Supersedes #7508
References #395 (overall bracketed paste support request)

Tests added. Manually tested.


🔄 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/9034 **Author:** [@skyline75489](https://github.com/skyline75489) **Created:** 2/4/2021 **Status:** ✅ Merged **Merged:** 2/8/2021 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `chesterliu/dev/paste-converter-2021-edition` --- ### 📝 Commits (8) - [`0eec78e`](https://github.com/microsoft/terminal/commit/0eec78e72d42f728ef1a17a508e7dc63ddf3e846) Add support for paste filtering and bracketed paste mode" - [`d168f76`](https://github.com/microsoft/terminal/commit/d168f764b8e4528cecbd9d0a18b4616b266fb180) Spelling - [`5b94939`](https://github.com/microsoft/terminal/commit/5b94939e78aa80238b7dc16310fedcae84dac089) this is lol - [`9e2d997`](https://github.com/microsoft/terminal/commit/9e2d997bbcd9bcfaf4421d60d7d611280ce3d9f6) you happy now? - [`df187f6`](https://github.com/microsoft/terminal/commit/df187f623532d70f69a9cf4d92e9c1ae617b5406) Feedback - [`f956962`](https://github.com/microsoft/terminal/commit/f9569621887b582fb9d1be4b79da27b1a3ca9451) PR feedback - [`e914f2b`](https://github.com/microsoft/terminal/commit/e914f2bd2626411eb9d1d95d04e5bd2413e684c1) Programming 101 - [`d2c2753`](https://github.com/microsoft/terminal/commit/d2c2753edc6b22428be1cb2b9589d4b4c383bdf0) til::at ### 📊 Changes **7 files changed** (+202 additions, -55 deletions) <details> <summary>View changed files</summary> 📝 `.github/actions/spelling/excludes.txt` (+1 -0) 📝 `src/cascadia/TerminalControl/TermControl.cpp` (+3 -55) 📝 `src/cascadia/TerminalCore/Terminal.cpp` (+18 -0) 📝 `src/cascadia/TerminalCore/Terminal.hpp` (+3 -0) 📝 `src/types/inc/utils.hpp` (+13 -0) 📝 `src/types/ut_types/UtilsTests.cpp` (+83 -0) 📝 `src/types/utils.cpp` (+81 -0) </details> ### 📄 Description This adds "paste filtering" & "bracketed paste mode" to the Windows Terminal. I've moved the paste handling code in `TerminalControl` to `Microsoft::Console::Util` to be able to easily test it, and the paste transformer from `TerminalControl` to `TerminalCore`. Supersedes #7508 References #395 (overall bracketed paste support request) Tests added. Manually tested. --- <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:21:42 +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#27394