[PR #14995] Add options to enable and disable read only mode #30336

Open
opened 2026-01-31 09:40:11 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/14995

State: closed
Merged: Yes


Summary of the Pull Request

PR adds functionality to enable or disable readOnly mode within panes. This functionality is different to toggling as if you call the same functionality twice, it will not toggle between states.

References and Relevant Issues

Validation Steps Performed

  • Checked readOnly is enabled when command triggered
  • Checked readOnly is enabled when command triggered while read only already enabled
  • Checked readOnly is disabled when command triggered while read only is enabled
  • Checked readOnly stays disabled when command triggered while read only is disabled
  • Checked above with multiple tabs and split panes

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14995 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request PR adds functionality to enable or disable readOnly mode within panes. This functionality is different to toggling as if you call the same functionality twice, it will not toggle between states. ## References and Relevant Issues - Closes https://github.com/microsoft/terminal/issues/14415 - Documentation https://github.com/MicrosoftDocs/terminal/pull/645 ## Validation Steps Performed - Checked readOnly is enabled when command triggered - Checked readOnly is enabled when command triggered while read only already enabled - Checked readOnly is disabled when command triggered while read only is enabled - Checked readOnly stays disabled when command triggered while read only is disabled - Checked above with multiple tabs and split panes ## PR Checklist - [ ] Closes #14415 - [X] Tests added/passed - [x] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: https://github.com/MicrosoftDocs/terminal/pull/645 - [X] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:40:11 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30336