App using Generic Host does not resize #1304
Unanswered
devployment
asked this question in
Q&A
Replies: 1 comment 4 replies
-
I'm not a mac user so can't test myself, but is Terminal.Gui (e.g. with UI Catalog) resizing working well with iTerm2 generally? I also have no idea what HostBuilder is all about. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, I have not much experience with terminal UIs in general. Just checking out this project for an idea I have in mind.
Currently I'm trying to create a bare bones application following the
ReactiveExample
. As an "app shell" I want to use the .NET generic host (HostBuilder).https://docs.microsoft.com/en-us/dotnet/core/extensions/generic-host#host-configuration
Problem is that by using the generic host, resizing stops working as you can see here.
https://screencast-o-matic.com/watch/crho2eVfxrm
Maybe thinking to use the generic host is already a bad idea. Not sure. But I wanted to give it a try. If I would have to guess I would say that some kind of message loop does not get the needed information to "resize" in my setup.
I create it like the following.
AppGui
contains myApplication.Init();
and implementsIHostedService
. The app starts fine and displays the UI.Environment
netcoreapp3.1
macOS Big Sur (11.3.1)
iTerm2
Example
Program.cs
AppGui.cs
Maybe somebody has an idea if doing it like this is doable in general.
Beta Was this translation helpful? Give feedback.
All reactions