[PR #9222] [PoC] Allow broadcasting keys to all panes in tab #27478

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

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

State: closed
Merged: No


Summary of the Pull Request

Introduces ToggleInputBroadcast command,
that makes Terminal Tab to broadcast its input to all panes.

This is an early draft to see if the implementation
and UX make any sense at all.

References

This is an attempt to address #2634.

PR Checklist

  • CLA signed.
  • Tests added/passed
  • Documentation updated.
  • Schema updated.
  • I've discussed this with core contributors already.

Detailed Description of the Pull Request / Additional comments

  • Store the IsInputBroadcastActive flag on the tab level
  • Add KeySent and CharSent events to TermControl
  • Register on this events in Tab and send the keys / chars
    to other terminals if IsInputBroadcastActive

One of the dilemmas was were to hook the input.
The most robust way would be to do it upon SendInputToConnection.
But it will prevent auto scrolling and deselection.

TODO

  • Fix the cursor blinking
  • Use accent colors for color coding
**Original Pull Request:** https://github.com/microsoft/terminal/pull/9222 **State:** closed **Merged:** No --- ## Summary of the Pull Request Introduces ToggleInputBroadcast command, that makes Terminal Tab to broadcast its input to all panes. This is an early draft to see if the implementation and UX make any sense at all. ## References This is an attempt to address #2634. <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [ ] I've discussed this with core contributors already. <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments * Store the IsInputBroadcastActive flag on the tab level * Add KeySent and CharSent events to TermControl * Register on this events in Tab and send the keys / chars to other terminals if IsInputBroadcastActive One of the dilemmas was were to hook the input. The most robust way would be to do it upon SendInputToConnection. But it will prevent auto scrolling and deselection. TODO * [ ] Fix the cursor blinking * [ ] Use accent colors for color coding
claunia added the pull-request label 2026-01-31 09:22:12 +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#27478