ArthurSonzogni / FTXUI

:computer: C++ Functional Terminal User Interface. :heart:
MIT License
6.98k stars 420 forks source link

Flashing Cursor in Graph Example #937

Open Disservin opened 1 month ago

Disservin commented 1 month ago

Hi,

I am currently giving the graph example from here https://github.com/ArthurSonzogni/FTXUI/blob/main/examples/dom/graph.cpp a shot but it leads to some weird cursor behavior.. it is constantly flashing allover the screen see:

https://github.com/user-attachments/assets/4d44a154-5fbd-498a-8b77-fb936d0c6f81

Environment:

WSL 2.0 with Windows Terminal.

If you need some more information please let me know.

Disservin commented 1 month ago

I did try the example in another terminal (Tabby) in this case and it works as expected.. not sure what is wrong for the windows terminal

Disservin commented 1 month ago

The homescreen example doesn't have this, presumably because the cursor is fixed to one of the tabs?

Disservin commented 1 month ago

Doing something like auto cursor = ftxui::Screen::Cursor{.shape = ftxui::Screen::Cursor::Shape::Hidden}; hides the cursor in this case, but I wonder if that is the correct behavior..