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

Multiple windows support #41

Open
mattilaa opened this issue Sep 26, 2020 · 1 comment
Open

Multiple windows support #41

mattilaa opened this issue Sep 26, 2020 · 1 comment

Comments

@mattilaa
Copy link

mattilaa commented Sep 26, 2020

Hi,

Have you considered to add multiple ncurses screen/window/panel support to the lib? Or is there some reason just not doing that? It's great so far, but it would be nice to have also pop-up windows, pop-up-menus and dialogs. Seems that now it's using the root main window (stdscr) for everything.

Maybe some RootWindow class using stdscr when initializing the app, and then maybe some central widget is given to the root which is actually a sub window for stdscr, and that handles widget childs as now. If you want a pop-up, insert a widget to the root or some other high level widget and the pop-up will be on top on everything below the pop-up widget? It might need some major refactoring, though.

-Matti

@a-n-t-h-o-n-y
Copy link
Owner

I've thought about how to do this a few times, so it might happen at some point. It could probably be built without modifying the layout system, just generalizing the current single screen to multiple screens/windows that work the same as the current main window. The newer version of the library no longer relies on ncurses, so that windowing logic would need to be built into TermOx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants