Skip to content

请问是否考虑加入获取某个terminal实例中所有输出文本的API #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
charliegogogo opened this issue Feb 1, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@charliegogogo
Copy link

Feature or optimization description

通过调用某个terminal的getOutputsAPI获取所有输出行的数组, 包括通过pushMessage, appendMessage等方式输出到terminal实例中的输出行

Applicable scene

某些使用场景中, 可能需要根据之前的输出结果来判断下次执行命令的行为, 或者让用户将所有输出内容复制到剪贴板中, 因此, 一个这样的API可覆盖以上2种使用场景, 希望作者能考虑一下, 感谢

@charliegogogo charliegogogo added the enhancement New feature or request label Feb 1, 2025
@tzfun
Copy link
Owner

tzfun commented Feb 10, 2025

好的,下个版本更新时加上读取log的接口

tzfun added a commit that referenced this issue Apr 15, 2025
@tzfun
Copy link
Owner

tzfun commented Apr 19, 2025

已在 3.4.1 版本添加接口 getOutputs

@tzfun tzfun closed this as completed Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants