-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Cannot find info on hosting terminal in another app. #4572
Comments
This is very well-documented on our docs.microsoft.com section |
There's also samples in this repository. |
There are no samples or document for hosting in a UWP process, which has been promised for a long time. Please reopen. |
We haven’t promised documentation on that, because hosting an unconstrained application from a UWP context is currently impossible. This is why we didn’t build the terminal as a UWP. That’s just not something the platform supports. |
This is literally line 4, as a Priority 0 item:
Terminal's core will be hostable as a UWP (and perhaps WPF) Control so that apps can host/embed a high quality Terminal. This will satisfy a long-standing ask from many customers and partners for a hostable/embeddable Terminal Control.
…________________________________
From: Dustin L. Howett (MSFT) <[email protected]>
Sent: Thursday, February 13, 2020 4:11 PM
To: microsoft/terminal <[email protected]>
Cc: The Sharp Ninja <[email protected]>; Author <[email protected]>
Subject: Re: [microsoft/terminal] Cannot find info on hosting terminal in another app. (#4572)
We haven’t promised documentation on that, because hosting an unconstrained application from a UWP context is currently impossible. This is why we didn’t build the terminal as a UWP. That’s just not something the platform supports.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#4572?email_source=notifications&email_token=AD3GCLE4BVNKY2PNGGCQBGTRCXARRA5CNFSM4KU25ZHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELWZXCY#issuecomment-585997195>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AD3GCLFVVFSAQIK2JFIT23TRCXARRANCNFSM4KU25ZHA>.
|
Okay you're not wrong about that. That doc is maybe a little out of date, but I guess we did mention that publicly. The way the terminal's architecture is designed, it's certainly possible to re-use the terminal control in other UWP projects. However, I think we've let the priority of that particular feature slip a bit as we approach 1.0. AS it currently stands, I don't think that we'll have the cycles to be able to officially support a nuget package or something for the terminal control in the 1.0 timeframe. I think it was more important for us to prepare for allowing arbitrary apps to host the control, and that we've most certainly done. Thant being said, it'd definitely be possible to unofficially use the @DHowett-MSFT is alluding to the fact that launching other processes from a UWP context is fraught with peril. Those perils is why we've chosen the Win32+Xaml Hosting model for the Terminal. That being said, you could totally add a terminal to a pure UWP application. Just be aware that it's a here be dragons path. We probably should add documentation on this, but I'm going to toss it on the backlog, since I don't think we'll want to author documentation at this time while things are still changing pretty rapidly. |
Ah, sorry about that! |
Totally cool!I am very happy to guinea pig this as I'm working on a project that literally is providing a programmer's "toolbox" that having an embedded terminal is a foundational requirement, and I started this project after months ago reading that quote and anxiously awaiting the release of the hostable console. I understand not wanting to post any formal docs yet, but if you could at least give me a rough set of steps to get a terminal hosted in a C# UWP app then I'd be greatly appreciative. |
@sharpninja If you're willing to take instructions with no warranty whatsoever and do something that might simply break for no reason because we're not ready to ship it yet, read on... And on and onIf you build Terminal, you'll get a bunch of interesting things in
Know that you'll be going significantly off-road here. Anyway, once you grab those things and integrate them into your own package, you should be able to host a There might be one or two .xbf files you need as well; if you see it failing to load SearchBoxControl, you'll want to make sure you copy that over too. It's really not in a good place right now! |
Thank you so much! I know what I’m doing this weekend.
|
If you want to go significantly the other way on this, the WpfTerminalControl project will produce a nuget package with far fewer dependencies that'll work with WPF Xaml (yeah!) down to Windows 7ish. I know that's really outside the scope of UWP 😉 |
Where can I find more information about WpfTerminalControl and how to use it in my WPF application? |
Sorry -- it's undocumented for a reason. It's very much an act of trailblazing to get it going. |
Hey! If someone is still interested in this, I've been playing around with the available WpfTerminalControl and the simplest way I found to make this work is as follows:
**Note that for the compilation script above to work, the The implementation referred above can be found under the For my use case, the result looks like this: |
About 3 years later. Is it in a good place now? |
Not really. This unfortunately hasn't really bubbled up to the top of our list of priorities yet.
|
We need documentation on hosting the console. Project templates would be very helpful.
The text was updated successfully, but these errors were encountered: