cpp-terminal icon indicating copy to clipboard operation
cpp-terminal copied to clipboard

menu_window_24bit does not seem to work on macOS

Open certik opened this issue 3 years ago • 2 comments

Here is how it looks like for me:

Screen Shot 2021-03-08 at 11 28 50 AM

It's actually blinking. And when I press an arrow, it disappears.

certik avatar Mar 08 '21 18:03 certik

Wow that's strange... we should create a stand alone demo for testing everything that cpp-terminal covers. Hve you tried it on windows yet? If it has no issue there it's probably because the macos terminal is interpreting the ANSI code wrong. We should probably really implement functions to check terminal support on runtime like ncurses can (with colors_enabled() or something like that but for all color options).

MCWertGaming avatar Mar 08 '21 19:03 MCWertGaming

We probably should. Ncurses used to detect all kinds of ancient terminals that are not in use anymore, but does not work super well in Windows. Our approach should be to support the main terminals in wide use on all platforms. We should detect what we run on and ensure we don't use features the given terminal does not support.

My initial approach with cpp-terminal was to strictly only support the subset which works everywhere. That way you know your program will work. But I think it is also useful to support things that work almost everywhere, but then we need to be able to detect.

certik avatar Mar 08 '21 21:03 certik