copy/paste issue over SSH connection #5789

Closed
opened 2026-01-31 00:21:43 +00:00 by claunia · 8 comments
Owner

Originally created by @AmericanY on GitHub (Jan 6, 2020).

Windows Terminal (Preview)
Version: 0.7.3451.0

I can copy/paste using ctrl-c & ctrl-v before i connect to SSH session.

My question here:

can i enable the same over ssh session ? or to copy on select via mouse ?

waiting for your feedback ASAP

Regards,

Originally created by @AmericanY on GitHub (Jan 6, 2020). ``` Windows Terminal (Preview) Version: 0.7.3451.0 ``` I can copy/paste using `ctrl-c` & `ctrl-v` before i connect to SSH session. My question here: can i enable the same over `ssh` session ? or to copy on select via mouse ? waiting for your feedback ASAP Regards,
Author
Owner

@mkitzan commented on GitHub (Jan 6, 2020):

I am able to copy-paste over an SSH connection using WT and use mouse selection. Are you asking whether or not this is possible or are you unable to perform this yourself?

@mkitzan commented on GitHub (Jan 6, 2020): I am able to copy-paste over an SSH connection using WT and use mouse selection. Are you asking whether or not this is possible or are you unable to perform this yourself?
Author
Owner

@AmericanY commented on GitHub (Jan 6, 2020):

@mkitzan thanks for your response. here on my end, I can only copy/paste using right click.

How can i enable Mouse selection ?

@AmericanY commented on GitHub (Jan 6, 2020): @mkitzan thanks for your response. here on my end, I can only copy/paste using `right click`. How can i enable Mouse selection ?
Author
Owner

@mkitzan commented on GitHub (Jan 6, 2020):

Take a look at my comment here about enabling Ctrl+C and Ctrl+V copy-paste.

Mouse selection should be there by default by performing the steps listed. If those don't work, let me know what happens when you perform those steps.

  • left click at the point you want to start selecting text
  • then drag the mouse over the text you want to select
@mkitzan commented on GitHub (Jan 6, 2020): Take a look at my comment [here](https://github.com/microsoft/terminal/issues/4065#issuecomment-569192075) about enabling <kbd>Ctrl+C</kbd> and <kbd>Ctrl+V</kbd> copy-paste. Mouse selection should be there by default by performing the steps listed. If those don't work, let me know what happens when you perform those steps. - left click at the point you want to start selecting text - then drag the mouse over the text you want to select
Author
Owner

@AmericanY commented on GitHub (Jan 6, 2020):

@mkitzan now it's works via Ctrl+C Ctrl+V. how about if i want to use mouse copy on selection ?

@AmericanY commented on GitHub (Jan 6, 2020): @mkitzan now it's works via <kbd>Ctrl+C</kbd> <kbd>Ctrl+V</kbd>. how about if i want to use mouse copy on selection ?
Author
Owner

@zadjii-msft commented on GitHub (Jan 6, 2020):

From SettingsSchema.md

Globals

Properties listed below affect the entire window, regardless of the profile settings.

Property Necessity Type Default Description
copyOnSelect Optional Boolean false When set to true, a selection is immediately copied to your clipboard upon creation. When set to false, the selection persists and awaits further action.
@zadjii-msft commented on GitHub (Jan 6, 2020): From [SettingsSchema.md](https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md) > ## Globals > Properties listed below affect the entire window, regardless of the profile settings. > > | Property | Necessity | Type | Default | Description | > | -------- | --------- | ---- | ------- | ----------- | > | `copyOnSelect` | Optional | Boolean | `false` | When set to `true`, a selection is immediately copied to your clipboard upon creation. When set to `false`, the selection persists and awaits further action. | >
Author
Owner

@AmericanY commented on GitHub (Jan 6, 2020):

@zadjii-msft thanks for your response. could you please advise me where i should put this ?

I'm now inside profiles.json, i try to insert "copyOnSelect": true under keybindings but VScode telling me it's incorrect Property copyOnSelect is not allowed.

@AmericanY commented on GitHub (Jan 6, 2020): @zadjii-msft thanks for your response. could you please advise me where i should put this ? I'm now inside profiles.json, i try to insert `"copyOnSelect": true` under keybindings but VScode telling me it's incorrect `Property copyOnSelect is not allowed.`
Author
Owner

@zadjii-msft commented on GitHub (Jan 6, 2020):

You can put it right in the root object of profiles.json:

{
    "$schema": "file:///c:/Users/migrie/dev/private/OpenConsole/doc/cascadia/profiles.schema.json",

    "alwaysShowTabs": false,
    "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
    "copyOnSelect": true,
	...
}
@zadjii-msft commented on GitHub (Jan 6, 2020): You can put it right in the root object of `profiles.json`: ```json { "$schema": "file:///c:/Users/migrie/dev/private/OpenConsole/doc/cascadia/profiles.schema.json", "alwaysShowTabs": false, "defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "copyOnSelect": true, ... } ```
Author
Owner

@AmericanY commented on GitHub (Jan 6, 2020):

@zadjii-msft thank you very very much. it's works!

@AmericanY commented on GitHub (Jan 6, 2020): @zadjii-msft thank you very very much. it's works!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5789