-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let folks disable OSC 52 #18449
Let folks disable OSC 52 #18449
Conversation
Is it worth to have a group policy? |
At this point, probably not. In the future if we ever add support for VT applications reading the clipboard (off by default,) we could have a policy that disallows users from enabling it. |
The test agents are currently pushing up daisies, so that's that then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- schema
- docs
<!-- Allow VT Clipboard Writing --> | ||
<local:SettingContainer x:Uid="Profile_AllowVtClipboardWrite" | ||
ClearSettingValue="{x:Bind Profile.ClearAllowVtClipboardWrite}" | ||
HasSettingValue="{x:Bind Profile.HasAllowVtClipboardWrite, Mode=OneWay}" | ||
SettingOverrideSource="{x:Bind Profile.AllowVtClipboardWriteOverrideSource, Mode=OneWay}"> | ||
<ToggleSwitch IsOn="{x:Bind Profile.AllowVtClipboardWrite, Mode=TwoWay}" | ||
Style="{StaticResource ToggleSwitchInExpanderStyle}" /> | ||
</local:SettingContainer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think the page would look nicer if this was below "Allow VT Checksum Report"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah thanks, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is set to true everywhere else
^ What Carlos said. Otherwise ✅
Co-authored-by: Carlos Zamora <[email protected]>
…icrosoft/terminal into dev/duhowett/osc-not-52-that-sfor-sure
@carlos-zamora alas, reapproval is required |
This pull request introduces a new profile setting,
compatibility.allowOSC52
, which defaults totrue
. When disabled, it will not allow applications to write to the clipboard.Security-minded folks may choose to disable it.