Skip to content
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

terminal 只可以附加控制台应用吗? #12525

Closed
a48625a opened this issue Feb 18, 2022 · 8 comments
Closed

terminal 只可以附加控制台应用吗? #12525

a48625a opened this issue Feb 18, 2022 · 8 comments
Labels
Issue-Question For questions or discussion Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered

Comments

@a48625a
Copy link

a48625a commented Feb 18, 2022

terminal 只可以附加像cmd、power shell之类的控制台应用吗?
能不能附加c#的窗口应用?如果不能,以后有没有可能支持这一功能。

@a48625a a48625a added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Feb 18, 2022
@ghost ghost added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 18, 2022
@zadjii-msft
Copy link
Member

zadjii-msft commented Feb 18, 2022

Apologies, I'm trying to use a machine translation. Sorry if I misunderstand.

You mean like, launch the Windows Terminal automatically when you launch cmd or powershell directly? That's actually a feature that we've already shipped in Windows 11. The "default terminal" setting changes which application is used to hsot commandline applications by default.

For more info see: Windows Terminal as your Default Command Line Experience.

Is that what you meant?

@zadjii-msft zadjii-msft added Issue-Question For questions or discussion Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. labels Feb 18, 2022
@Hill-98
Copy link

Hill-98 commented Feb 18, 2022

如果你需要将第三方程序添加进 terminal,只需要第三方程序是标准的可交互命令行即可。

如果你需要在自己的应用程序中使用 terminal,比如使用 terminal 的渲染引擎等组件,你需要自己进行集成。


If you need to add a third-party program to terminal, you only need the third-party program to be a standard interactable command line.

If you need to use terminal in your own application, for example using components such as terminal's rendering engine, you will need to do your own integration.

@Hill-98
Copy link

Hill-98 commented Feb 18, 2022

I can't translate this issue accurately into English because I don't understand his full meaning either, I can only try to guess.

@a48625a
Copy link
Author

a48625a commented Feb 20, 2022

I mean: can terminal attach window programs like cmd.exe. For example: wpf program, notepad.exe, etc.

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Feb 20, 2022
@Hill-98
Copy link

Hill-98 commented Feb 20, 2022

终端是用于提供和 Shell 交互的图形界面,并不是”附加“,所以不能用于图形程序。


The terminal is used to provide a graphical interface for interacting with the shell, not "attach", so it cannot be used for GUI.

@a48625a
Copy link
Author

a48625a commented Feb 20, 2022

thank you!

@driver1998
Copy link

driver1998 commented Feb 22, 2022

Might be related to #997. But hosting a UIElement like a WebView is one thing, hosting a different GUI application (basically means hosting another HWND window) is another.

My translation of the issue:
Can Terminal attach or host something other than console apps? Like GUI apps in C# for example.

@zadjii-msft
Copy link
Member

My other theory is that OP means something like #4572/#6999. Either that or #11387. Sounds like the question was answered though, thanks for the assist @Hill-98 ☺️

@zadjii-msft zadjii-msft added the Resolution-Answered Related to questions that have been answered label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question For questions or discussion Needs-Attention The core contributors need to come back around and look at this ASAP. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

4 participants