gyscos / cursive

A Text User Interface library for the Rust programming language
MIT License
4.31k stars 247 forks source link

[BUG] Blinking cursor at end of Dialog title after resize #647

Open derfarctor opened 2 years ago

derfarctor commented 2 years ago

Describe the bug Upon resizing the terminal window, a blinking cursor is visible at the end of a Dialog's title.

To Reproduce Using: https://github.com/gyscos/cursive/blob/main/cursive/examples/dialog.rs

Expected behavior The terminal would resize and the cursor would not be visible blinking, in the same way it was when the terminal window was first created when the program was run.

Screenshots Before resizing: image After resizing: image Note the grey blinking cursor at the end of the text 'Cursive'

Environment

Additional Perhaps this is as a result of my terminal settings, although I did try to reset everything to default.

gyscos commented 2 years ago

Hi, and thanks for the report!

I don't have a windows computer to try easily, so I'm not totally sure what's going on. Will investigate a bit to see if there's a special thing we should do after a resize.