microsoft / microsoft/terminal

Be able to switch the pane "focus" of my cursor programmatically

Open
#18,278 2 comments 0 reactions 0 assignees View on GitHub
Area-Commandline Issue-Feature Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Description of the new feature

I want to be able to run a command in one pane and then have my cursors focus be able to shift to the other frame. This is mainly for AI Shell where after a someone uses the command `/code post` to post code responses to their working shell that their cursor is also shifted to the left in order to help speed of running the commands suggested. Related issue: https://github.com/PowerShell/AIShell/issues/311

In the GIF below, I have to click on the left side to shift my focus and be able to execute the command inserted.

![Image](https://github.com/user-attachments/assets/9155ae98-f471-4a4e-9d52-a2f63b38adc0)

### Proposed technical implementation details

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue does not identify a source file, test, or entry point; begin by locating the existing pane-focus and command-handling paths in the Windows Terminal codebase. Done means exposing a programmatic way for a command such as AI Shell's `/code post` flow to move cursor focus to the other pane, with behavior covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.