[PR #8867] Introduce read-only panes #27321

Closed
opened 2026-01-31 09:21:18 +00:00 by claunia · 0 comments
Owner

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

State: closed
Merged: Yes


Summary of the Pull Request

Introduces read-only panes.
When pane is marked as read-only:

  1. Attempt to provide user input results in a warning
  2. Attempt to close pane - shows dialog
  3. Attempt to close hosting tab shows dialog
  4. The hosting tab has no close button

PR Checklist

Detailed Description of the Pull Request / Additional comments

  1. The readonly logic implemented in TermControl
    (and prevents any send input)
  2. Special handling is required to allow key-bindings
  3. The "close-readonly" protections are in TerminalPage.
  4. The indication that the pane is readonly is done using lock glyph
  5. The indication that the tab contains readonly pane
    is done by hiding the close button of the tab
  6. The readonly mode is enabled by keyboard shortcut
    (the followup might add this to the context menu)

Validation Steps Performed

**Original Pull Request:** https://github.com/microsoft/terminal/pull/8867 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request Introduces read-only panes. When pane is marked as read-only: 1. Attempt to provide user input results in a warning 2. Attempt to close pane - shows dialog 3. Attempt to close hosting tab shows dialog 4. The hosting tab has no close button ## PR Checklist * [x] Closes #6981 * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated - not yet. * [x] Schema updated. * [ ] I've discussed this with core contributors already. ## Detailed Description of the Pull Request / Additional comments 1. The readonly logic implemented in `TermControl` (and prevents any send input) 2. Special handling is required to allow key-bindings 3. The "close-readonly" protections are in TerminalPage. 4. The indication that the pane is readonly is done using lock glyph 5. The indication that the tab contains readonly pane is done by hiding the close button of the tab 6. The readonly mode is enabled by keyboard shortcut (the followup might add this to the context menu) ## Validation Steps Performed
claunia added the pull-request label 2026-01-31 09:21:18 +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#27321