FTXUI icon indicating copy to clipboard operation
FTXUI copied to clipboard

How to check if current terminal supports TUI?

Open t1m013y opened this issue 1 year ago • 2 comments

I compiled one of examples. It works on Windows 11 and 10. But in custom terminal program I can't use mouse and on windows 7 it prints random set of characters. How to check if current terminal supports TUI (to use standard console interface if not)? I want to make maximum cross-platform app so it is important to me.

t1m013y avatar Feb 27 '24 11:02 t1m013y

Thanks for your patience!

FTXUI detects this for you, but you can also override the decision: https://github.com/ArthurSonzogni/FTXUI/blob/main/include/ftxui/screen/terminal.hpp#L17-L24

Microsoft terminals are known to be problematic.

What terminal are you using?

ArthurSonzogni avatar Apr 29 '24 10:04 ArthurSonzogni

For example, it works in windows 10 and 11 terminal but it don't works at all in windows 7 terminal or in Console Portable

t1m013y avatar May 01 '24 08:05 t1m013y