ggerganov / imtui

ImTui: Immediate Mode Text-based User Interface C++ Library
https://imtui.ggerganov.com
MIT License
2.94k stars 123 forks source link

Minor rewrite - add support for drawing other things on the terminal while ImTui is active. #53

Closed katemonster33 closed 7 months ago

katemonster33 commented 8 months ago

Added support for drawing other things on the screen while ImTui is active, without corrupting ImTui or the other window.

katemonster33 commented 8 months ago

I also needed to add changes to the way font drawing was done in order for ImTui to work for my use case. This is a draft PR because I believe this will need some work before it can be merged, but I would like to get it merged so an official release can be made.

katemonster33 commented 8 months ago

@ggerganov was hoping to hear from you whether you feel this PR is desirable. If not I will keep my changes local. The branch came about because I was adding ImTui support to the game Cataclysm Dark Days Ahead.

katemonster33 commented 8 months ago

Hi, thank you for your comments, I will try and split this up.

The big issue was the multi-window problem, I did not see any way for the application to draw anything else with ncurses while an ImTui window was active, can you confirm whether this is expected behavior or not?

ggerganov commented 7 months ago

I think it is expected, though not 100% sure. In my applications I've always been drawing to the screen only via ImTui