Samyak2 / toipe

yet another typing test, but crab flavoured
MIT License
592 stars 31 forks source link

[enhancement] Resetting the cursor #46

Open nthnd opened 2 years ago

nthnd commented 2 years ago

After exiting toipe, the cursor will change into cursor::SteadyBlock and I find myself having to run reset in my terminal. It would be nice if the cursor could return to its original state after exiting toipe.

Samyak2 commented 2 years ago

That is quite annoying indeed. I wanted a way to find out what cursor the user had before starting toipe and reset to that. Unfortunately that's not possible: https://github.com/Samyak2/toipe/pull/39#issue-1282645896

As a workaround, you could use an alias that runs reset after exiting toipe: alias toipe="toipe && reset" and add it to your shell configuration.

I still believe that toipe should change the user's cursor to a blinking bar as that (IMO) provides the best experience for this app. Although, I'm open to exposing an option that lets the user select what type of cursor they want.

nthnd commented 2 years ago

I agree, doing it that way is much better