Feature Request: Rich Text Format (RTF) Copy #3496

Closed
opened 2026-01-30 23:22:33 +00:00 by claunia · 3 comments
Owner

Originally created by @carlos-zamora on GitHub (Aug 20, 2019).

Description of the new feature/enhancement

Copy RTF data from selection. Useful for pasting text over to MS Word (or something similar).

Split off from #1146 for clarity.

Resources:

Copy and Paste Docs
DataPackage Docs (how to actually save the stuff. This is probably the more important doc)

Proposed technical implementation details (optional)

So, looking at Clipboard.cpp under ConHost's InteractivityWin32 project, should cover most of what is done. We're just slightly different in that we're using the UWP Clipboard API but that should actually make a lot of it much easier.

The data should already be saved in data in Terminal::RetrieveSelectedTextFromBuffer(bool). We just need to actually save it properly.

Originally created by @carlos-zamora on GitHub (Aug 20, 2019). # Description of the new feature/enhancement Copy RTF data from selection. Useful for pasting text over to MS Word (or something similar). Split off from #1146 for clarity. Resources: Copy and Paste Docs DataPackage Docs (how to actually save the stuff. This is probably the more important doc) # Proposed technical implementation details (optional) So, looking at Clipboard.cpp under ConHost's InteractivityWin32 project, should cover most of what is done. We're just slightly different in that we're using the UWP Clipboard API but that should actually make a lot of it much easier. The data should already be saved in data in Terminal::RetrieveSelectedTextFromBuffer(bool). We just need to actually save it properly.
Author
Owner

@carlos-zamora commented on GitHub (Aug 20, 2019):

HTML copy was accomplished with #1224 . The logic should be pretty similar and will point you in the right direction.

Also adding the Help-Wanted tag in case anybody wants to implement this feature.

@carlos-zamora commented on GitHub (Aug 20, 2019): HTML copy was accomplished with #1224 . The logic should be pretty similar and will point you in the right direction. Also adding the Help-Wanted tag in case anybody wants to implement this feature.
Author
Owner

@anirudhrb commented on GitHub (Nov 12, 2019):

@carlos-zamora Attempted a PR (#3535) for this. Please have a look.

@anirudhrb commented on GitHub (Nov 12, 2019): @carlos-zamora Attempted a PR (#3535) for this. Please have a look.
Author
Owner

@ghost commented on GitHub (Nov 26, 2019):

:tada:This issue was addressed in #3535, which has now been successfully released as Windows Terminal Preview v0.7.3291.0.🎉

Handy links:

@ghost commented on GitHub (Nov 26, 2019): :tada:This issue was addressed in #3535, which has now been successfully released as `Windows Terminal Preview v0.7.3291.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.7.3291.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3496