microsoft / microsoft/terminal
sendInput doesn't seem to work in multipleActions
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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