Skip to content

Connect GenRTF to conhost (Win32Interactivity Clipboard) #3560

Closed

Description

Make conhost do RTF!

Dustin L. Howett (MSFT) (@DHowett-MSFT) Carlos Zamora (@carlos-zamora) What needs to be done to bring this into conhost? Are you gonna create a new issue?

Originally posted by Anirudh Rayabharam (@anirudhrb) in #3535 (comment)

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Nov 13, 2019
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on Nov 13, 2019
  3. added
    Area-InteractionInteracting with the vintage console window (as opposed to driving via API or hooks)
    Help WantedWe encourage anyone to jump in on these.
    Issue-TaskIt's a feature request, but it doesn't really need a major design.
    Product-ConhostFor issues in the Console codebase
    on Nov 13, 2019
  4. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Nov 13, 2019
  5. added
    Needs-Tag-FixDoesn't match tag requirements
    and removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Nov 13, 2019
  6. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on Nov 13, 2019
  7. anirudhrb commented on Nov 14, 2019

    @anirudhrb
    Contributor

    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:

    UINT const CF_HTML = RegisterClipboardFormatW(L"HTML Format");

    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?

    Let me know if I'm on the right track here.

  8. DHowett-MSFT commented on Nov 14, 2019

    @DHowett-MSFT
    ContributorAuthor

    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!

  9. DHowett-MSFT commented on Nov 14, 2019

    @DHowett-MSFT
    ContributorAuthor

    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.

  10. ghost added
    In-PRThis issue has a related PR
    on Nov 15, 2019
  11. anirudhrb commented on Nov 15, 2019

    @anirudhrb
    Contributor

    Dustin L. Howett (MSFT) (@DHowett-MSFT) raised a PR (#3595) for this. Please review.

  12. ghost closed this as completedin #3595on Dec 5, 2019
  13. ghost added a commit that references this issue on Dec 5, 2019
    f1ff0cf
  14. ghost removed
    In-PRThis issue has a related PR
    on Dec 5, 2019
  15. ghost added
    Resolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.
    on Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-InteractionInteracting with the vintage console window (as opposed to driving via API or hooks)Help WantedWe encourage anyone to jump in on these.Issue-TaskIt's a feature request, but it doesn't really need a major design.Product-ConhostFor issues in the Console codebaseResolution-Fix-CommittedFix is checked in, but it might be 3-4 weeks until a release.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions