[PR #18928] Add support for tmux control mode (#3656) #31654

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

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

State: open
Merged: No


Summary of the Pull Request

Let WT supports tmux control mode

References and Relevant Issues

#3656

Detailed Description of the Pull Request / Additional comments

Screenshot 2025-05-13 232209

Support:

  • Create/attach tmux session

  • Split pane vertical/horizontal

  • Window/panes size change

  • Remove pane/tab if remote pane exit or window exit

Improvements may do:

  • Merge the tmux menus/button with existing menu/button
  • Add the keyboard accelerators for tmux menus
  • Unicode support(the VTParser just pass part of characters in DCS mode
  • When attached a session, focus on the same focused tab/pane when detaching(backend is done, need to do some work frontend)
  • Test code

Tested by using tmux 3.4:
ssh to a machine has tmux or use wsl, then run
"tmux -CC" or "tmux -CC a"

Validation Steps Performed

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18928 **State:** open **Merged:** No --- ## Summary of the Pull Request Let WT supports tmux control mode ## References and Relevant Issues #3656 ## Detailed Description of the Pull Request / Additional comments ![Screenshot 2025-05-13 232209](https://github.com/user-attachments/assets/a65dfaa2-55b1-4a37-a1fa-d887cd4b8531) Support: - Create/attach tmux session - Split pane vertical/horizontal - Window/panes size change - Remove pane/tab if remote pane exit or window exit Improvements may do: - Merge the tmux menus/button with existing menu/button - Add the keyboard accelerators for tmux menus - Unicode support(the VTParser just pass part of characters in DCS mode - When attached a session, focus on the same focused tab/pane when detaching(backend is done, need to do some work frontend) - Test code Tested by using tmux 3.4: ssh to a machine has tmux or use wsl, then run "tmux -CC" or "tmux -CC a" ## Validation Steps Performed ## PR Checklist - [x ] Closes #3656 - [ ] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:48:39 +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#31654