ggerganov / imtui

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

No output in tmux / screen #41

Open davidchisnall opened 2 years ago

davidchisnall commented 2 years ago

Using imtui from within a tmux session, I get a completely blank screen. Looking in the debugger, the render loop does appear to be running, but nothing is visible. I believe tmux uses the alternate screen itself, so maybe we're toggling out of that mode and sending output to the wrong place? I also tested from screen and see the same behaviour, so I don't think it's a bug in tmux.

ggerganov commented 2 years ago

Might be the same issue as in #10 ?

davidchisnall commented 2 years ago

Looks like it. Setting TERM to screen-256color gave me output but the mouse didn't work. Setting it to xterm-256color worked (I could have sworn I tried that, but apparently not). It would be nice if there were some way of reporting this to the programmer so that I can print a helpful error message and exit, rather than a black screen.