Skip to content

[Feature] 添加交互式shell工具 #8086

@elecvoid243

Description

@elecvoid243

Description / 描述

问题:目前astrbot_execute_shell仅能执行一次性程序,如果程序是交互性的(例如“按任意键继续”),会导致stdin悬空等待
建议:添加一套交互式的shell工具
astrbot_inta_shell_start 启动交互式程序
astrbot_inta_shell_send 向程序发送输入
astrbot_inta_shell_read 读取程序输出
astrbot_inta_shell_stop 终止交互式程序
尽管可以用插件来实现,但建议原生支持该功能

Use Case / 使用场景

运行交互式程序与REPL环境进行交互

Willing to Submit PR? / 是否愿意提交PR?

  • Yes, I am willing to submit a PR. / 是的,我愿意提交 PR。

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreThe bug / feature is about astrbot's core, backendenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions