microsoft/Terminal

sendInput doesn't seem to work in multipleActions

Open

#13,444 创建于 2022年7月6日

在 GitHub 查看
 (7 评论) (12 反应) (0 负责人)C++ (3,212 fork)batch import
Area-InputArea-SettingsHelp WantedIssue-BugPriority-3Product-Terminal

仓库指标

Star
 (35,764 star)
PR 合并指标
 (平均合并 27天 19小时) (30 天内合并 24 个 PR)

描述

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.

贡献者指南