[PR #3595] Conhost: copy RTF to clipboard #25447

Closed
opened 2026-01-31 09:09:33 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/3595

State: closed
Merged: Yes


RTF data is now copied to the clipboard. The clipboard format name
used for RTF data is Rich Text Format.

Refactored some code in Clipboard.cpp so that the code for setting
data to the clipboard is re-used. Also, renamed parameter
fAlsoCopyHtml to fAlsoCopyFormatting to make it more generic.

Tested by copying text from console to WordPad. Also verified that
HTML copy is not regressed by copying to Word.

Closes #3560.

**Original Pull Request:** https://github.com/microsoft/terminal/pull/3595 **State:** closed **Merged:** Yes --- RTF data is now copied to the clipboard. The clipboard format name used for RTF data is `Rich Text Format`. Refactored some code in `Clipboard.cpp` so that the code for setting data to the clipboard is re-used. Also, renamed parameter `fAlsoCopyHtml` to `fAlsoCopyFormatting` to make it more generic. Tested by copying text from console to WordPad. Also verified that HTML copy is not regressed by copying to Word. Closes #3560.
claunia added the pull-request label 2026-01-31 09:09:33 +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#25447