ayoisaiah / focus

A fully featured productivity timer for the command line, based on the Pomodoro Technique. Supports Linux, Windows, and macOS.
https://github.com/ayoisaiah/focus
MIT License
437 stars 21 forks source link

Timer updates not staying on single line within default terminal app on macOS #21

Closed cwithmichael closed 11 months ago

cwithmichael commented 11 months ago
Screenshot 2023-10-18 at 4 38 47 PM

Adding a carriage return here to prevent advancing to the next line seems to fix the issue. "\r🕒%s:%s",

Cheers

ayoisaiah commented 11 months ago

@cwithmichael Thanks so much for reporting this! I don't have a Mac to test the change so I will take your word for it https://github.com/ayoisaiah/focus/commit/436e150a8cc8c9c336d0280f463c2771eecae208