91861 / wayst

A simple terminal emulator
MIT License
293 stars 9 forks source link

Typing causes flickering terminal cursor #87

Closed shoober420 closed 3 years ago

shoober420 commented 3 years ago

When enabling the blinking terminal cursor, the cursor will flicker rapidly after each keypress. Im for certain other terminal emulators keep the terminal cursor solid while typing, then it starts blinking after no keypresses are detected.

91861 commented 3 years ago

terminal emulators keep the terminal cursor solid while typing

Any user action, such as a key press, should trigger a blink 'suspend' timer. The timeout can be set by the third parameter to the blink option. By default it's 500ms (about the same as VTE).

Just tested this and it seems to work correctly on 4143e354f2d55233c1b4e962dacaaf1410f3c46a.

shoober420 commented 3 years ago

It was a bad config setting, my apologize. I had the following values in my config.

blink="true:500:1:-1"

Changing them to the values below fixed the issue.

blink="true:500:500:-1"

https://gist.github.com/shoober420/8a2206ee8472eb0b74aa7dec969f0ccc