You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Connect GenRTF to conhost (Win32Interactivity Clipboard) #3560
The way I understand it, any other program that wants to read this HTML needs to know that format name is HTML Format. Similarly, is there some standard name for RTF? Is it simply RTF Format? Do we document these names somewhere?
To trigger formatted copy in conhost, you’ll want to hold down Alt when you issue the final right-click that performs the copy. It’s not “on by default” like Terminal’s is.
Activity
anirudhrb commentedon Nov 14, 2019
I would like to pick this up too!
I believe this is the file I should be looking at: https://github.com/microsoft/terminal/blob/master/src/interactivity/win32/Clipboard.cpp
At a high-level, I should do the same things that are being done for HTML copy right?
Also, we are registering a format for HTML here:
terminal/src/interactivity/win32/Clipboard.cpp
Line 303 in 13406b7
The way I understand it, any other program that wants to read this HTML needs to know that format name is
HTML Format. Similarly, is there some standard name for RTF? Is it simplyRTF Format? Do we document these names somewhere?Let me know if I'm on the right track here.
DHowett-MSFT commentedon Nov 14, 2019
You’re on the right track! I’ll assign this to you.
I’m not sure what the legacy clipboard API contract is for RTF content, but figuring that out is half the fun!
DHowett-MSFT commentedon Nov 14, 2019
To trigger formatted copy in conhost, you’ll want to hold down Alt when you issue the final right-click that performs the copy. It’s not “on by default” like Terminal’s is.
anirudhrb commentedon Nov 15, 2019
Dustin L. Howett (MSFT) (@DHowett-MSFT) raised a PR (#3595) for this. Please review.
Conhost: copy RTF to clipboard (#3595)