chelnak / ysmrr

YSMRR is a package that provides simple multi-line compatible spinners for Go applications.
MIT License
75 stars 6 forks source link

Fix Cnorm behaviour #2

Closed chelnak closed 2 years ago

chelnak commented 2 years ago

Prior to this commit the cursor would not be returned to the terminal after execution.

This was due to two things:

  1. The escape code being sent was incorrect
  2. The position of the call to the Cnorm method was incorrect

This commit fixes both issues.