HTML Copy sometimes inserts “Windows Terminal”; perhaps this is the TITLE element #7403

Closed
opened 2026-01-31 01:03:04 +00:00 by claunia · 19 comments
Owner

Originally created by @vra on GitHub (Apr 14, 2020).

Description of the new feature/enhancement

Now, when I copy texture in a windows terminal, and then paste it in some place like discourse comments, the prefix "Windows Terminal" will added. e.g. if I copy "hello", what will paste in discoure is:

Windows Terminal

hello

which is quite troublesome, because I need delete this prefix by hand.
What I want is to remove prefix and only texture be pasted.
I also noticed that when paste in some place (like here), the prefix is gone. So this behavior may related to the place where to pasted.

Proposed technical implementation details (optional)

Originally created by @vra on GitHub (Apr 14, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> Now, when I copy texture in a windows terminal, and then paste it in some place like discourse comments, the prefix "Windows Terminal" will added. e.g. if I copy "hello", what will paste in discoure is: ``` Windows Terminal hello ``` which is quite troublesome, because I need delete this prefix by hand. What I want is to remove prefix and only texture be pasted. I also noticed that when paste in some place (like here), the prefix is gone. So this behavior may related to the place where to pasted. # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 14, 2020):

We aren’t adding that.

@DHowett-MSFT commented on GitHub (Apr 14, 2020): We aren’t adding that.
Author
Owner

@williame-uah commented on GitHub (Apr 20, 2020):

Same issue. Besides "paste as plain text" what are other options? What setting could be leveraged to disable the extra "Windows Terminal" text when pasting to other apps?

@williame-uah commented on GitHub (Apr 20, 2020): Same issue. Besides "paste as plain text" what are other options? What setting could be leveraged to disable the extra "Windows Terminal" text when pasting to other apps?
Author
Owner

@zadjii-msft commented on GitHub (Apr 20, 2020):

@williame-uah What application are you seeing that in? We're not adding that text to what we put on the clipboard, so it must be coming from somewhere else.

@zadjii-msft commented on GitHub (Apr 20, 2020): @williame-uah What application are you seeing that in? We're not adding that text to what we put on the clipboard, so it must be coming from somewhere else.
Author
Owner

@williame-uah commented on GitHub (Apr 20, 2020):

Start a new email in gmail, firefox or chrome, paste into email body. Also happens in Hangouts.

@williame-uah commented on GitHub (Apr 20, 2020): Start a new email in gmail, firefox or chrome, paste into email body. Also happens in Hangouts.
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 20, 2020):

And are you running any third-party software; potentially a corporate management solution, remote desktop software, clipboard manager?

@DHowett-MSFT commented on GitHub (Apr 20, 2020): And are you running any third-party software; potentially a corporate management solution, remote desktop software, clipboard manager?
Author
Owner

@williame-uah commented on GitHub (Apr 20, 2020):

This might be useful, I am using windows terminal preview to get to WSL. So copy from wsl cli using windows terminal to gmail(chrome or firefox) triggers it.

This is my home pc, personal, not corporate PC joined to Active Directory or anything. No AD policies in place. Only work app I have installed is Pulse Secure vpn. It has no posture enforcement/etc. configured to my knowledge. Can replicate with or without being connected to vpn.

Screenshot of both cases attached, ctrl-shift-v and ctrl-v results.

WindowsTerminal-paste-2020-04-20 141153

@williame-uah commented on GitHub (Apr 20, 2020): This might be useful, I am using windows terminal preview to get to WSL. So copy from wsl cli using windows terminal to gmail(chrome or firefox) triggers it. This is my home pc, personal, not corporate PC joined to Active Directory or anything. No AD policies in place. Only work app I have installed is Pulse Secure vpn. It has no posture enforcement/etc. configured to my knowledge. Can replicate with or without being connected to vpn. Screenshot of both cases attached, ctrl-shift-v and ctrl-v results. ![WindowsTerminal-paste-2020-04-20 141153](https://user-images.githubusercontent.com/38042524/79790213-06346080-8311-11ea-8b31-e3a71a44912f.png)
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 20, 2020):

Hmm how are we supposed to populate the html title tag I wonder

@DHowett-MSFT commented on GitHub (Apr 20, 2020): Hmm how are we supposed to populate the html title tag I wonder
Author
Owner

@williame-uah commented on GitHub (Apr 20, 2020):

The "fancy" paste with background and formatting, I get. I use windows, linux and mac all regularly, paste with formatting retained is not terribly uncommon. What is uncommon is the "Windows terminal" line prefixing it. Any idea how to suppress that bit? Other than trying to always remember to backspace over it or paste as plain text?

@williame-uah commented on GitHub (Apr 20, 2020): The "fancy" paste with background and formatting, I get. I use windows, linux and mac all regularly, paste with formatting retained is not terribly uncommon. What is uncommon is the "Windows terminal" line prefixing it. Any idea how to suppress that bit? Other than trying to always remember to backspace over it or paste as plain text?
Author
Owner

@williame-uah commented on GitHub (Apr 20, 2020):

Even more annoying in Google hangouts. My colleagues often ask "what is this?" . :-)

Again, as you say, html paste scenario. Hangouts widget spawned from browser window.

Screenshot attached.

image

@williame-uah commented on GitHub (Apr 20, 2020): Even more annoying in Google hangouts. My colleagues often ask "what is this?" . :-) Again, as you say, html paste scenario. Hangouts widget spawned from browser window. Screenshot attached. ![image](https://user-images.githubusercontent.com/38042524/79790996-37616080-8312-11ea-8efa-bdce45f75df5.png)
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 20, 2020):

Sorry, that question wasn't directed at you. I'm wondering if it's happening because we're filling out the "Title" of the rich text document that we put on the clipboard, and perhaps we shouldn't be doing that. Most applications seem to ignore it, but the ones that live in the browser don't seem to.

@DHowett-MSFT commented on GitHub (Apr 20, 2020): Sorry, that question wasn't directed at you. I'm wondering if it's happening because we're filling out the "Title" of the rich text document that we put on the clipboard, and perhaps we shouldn't be doing that. Most applications seem to ignore it, but the ones that live in the browser don't seem to.
Author
Owner

@williame-uah commented on GitHub (Apr 20, 2020):

On mac(s), pasting from apple terminal doesn't prepend "Apple terminal" to the clipboard contents. Ditto for Putty on windows.

You guys have done a great thing creating windows terminal, please don't take this as complaining, just drawing attention to what I view as a possible defect so it can hopefully be fixed.

@williame-uah commented on GitHub (Apr 20, 2020): On mac(s), pasting from apple terminal doesn't prepend "Apple terminal" to the clipboard contents. Ditto for Putty on windows. You guys have done a great thing creating windows terminal, please don't take this as complaining, just drawing attention to what I view as a possible defect so it can hopefully be fixed.
Author
Owner

@williame-uah commented on GitHub (Apr 20, 2020):

BTW, can also replicate, ruling out wsl, using windows terminal for powershell. Paste in gmail looks like:

Windows Terminal
PS C:\Users> date

Monday, April 20, 2020 2:27:40 PM

In case this helps.

@williame-uah commented on GitHub (Apr 20, 2020): BTW, can also replicate, ruling out wsl, using windows terminal for powershell. Paste in gmail looks like: Windows Terminal PS C:\Users> date Monday, April 20, 2020 2:27:40 PM In case this helps.
Author
Owner

@williame-uah commented on GitHub (Apr 20, 2020):

Can also replicate on homeadvisor website textarea element, not just gmail. I think your html title idea is likely the cause. Though I have no idea how to confirm.

Thanks for looking into this BTW.

@williame-uah commented on GitHub (Apr 20, 2020): Can also replicate on homeadvisor website textarea element, not just gmail. I think your html title idea is likely the cause. Though I have no idea how to confirm. Thanks for looking into this BTW.
Author
Owner

@ghost commented on GitHub (Apr 24, 2020):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Apr 24, 2020): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 24, 2020):

Whoops, sorry about that! I cleared up the tags so the bot won’t close the bug.

@DHowett-MSFT commented on GitHub (Apr 24, 2020): Whoops, sorry about that! I cleared up the tags so the bot won’t close the bug.
Author
Owner

@williame-uah commented on GitHub (Apr 24, 2020):

Thanks!

@williame-uah commented on GitHub (Apr 24, 2020): Thanks!
Author
Owner

@ghost commented on GitHub (May 5, 2020):

:tada:This issue was addressed in #5595, which has now been successfully released as Windows Terminal Release Candidate v0.11.1251.0 (1.0rc1).🎉

Handy links:

@ghost commented on GitHub (May 5, 2020): :tada:This issue was addressed in #5595, which has now been successfully released as `Windows Terminal Release Candidate v0.11.1251.0 (1.0rc1)`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.11.1251.0 (1.0rc1)) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Author
Owner

@williame-uah commented on GitHub (May 5, 2020):

Thank you!

@williame-uah commented on GitHub (May 5, 2020): Thank you!
Author
Owner

@DHowett-MSFT commented on GitHub (May 5, 2020):

You're welcome! Thanks for finding it.

@DHowett-MSFT commented on GitHub (May 5, 2020): You're welcome! Thanks for finding it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7403