microsoft / microsoft/terminal

sendInput doesn't seem to work in multipleActions

Open
#13,444 7 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Input Area-Settings Help Wanted Issue-Bug Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.15.1863.0

### Windows build number

10.0.22824.0

### Other Software

_No response_

### Steps to reproduce

I'm attempting to open a new tab and then send input in that new tab using the `multipleActions` command.

```
{
"command":
{
"action": "multipleActions",
"actions": [
{
"action": "newTab"
},
{
"action": "sendInput",
"input": "\u001b[A"
}
]
},
"name": "Send Input Test"
},
```

### Expected Behavior

The new tab should have the input sent from `sendInput`, which in this case is as if I pressed the up arrow in my buffer.

### Actual Behavior

`sendInput` seems to be completely ignored and my input line is empty.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the multipleActions command processes the newTab and sendInput actions, using the provided JSON reproduction. Verify that input is delivered to the newly opened tab and run the relevant existing tests, if found, to confirm the up-arrow input is no longer ignored.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.