Set-Clipboard -Remote with OSC52 #9300
Labels
area-management
Area - Microsoft.PowerShell.Management module
issue-doc-idea
Issue - request for new content
Milestone
Prerequisites
Get-Foo
cmdlet" instead of "New cmdlet."Summary
Added switch
-AsOSC52
(alias-ToLocalhost
) which uses OSC52 escape sequence to set the clipboard of the host (system running terminal) instead of target (system actually running PowerShell).Details
The documentation should explain the following:
Get-Clipboard
equivalent is considered a security risk and not implemented in PowerShell nor any terminal of note, but can be retrieved simply withCtrl+Shift+V
.$PSDefaultParameters['Set-Clipboard:AsOSC52'] = $env:SSH_CLIENT -or $env:SSH_TTY
to their$PROFILE
to automatically choose the correct method when connecting over SSH.Articles
Related Source Pull Requests
Related Source Issues
The text was updated successfully, but these errors were encountered: