1. 18 Feb, 2025 2 commits
  2. 17 Feb, 2025 2 commits
    • Jeremy Schlatter's avatar
      cmd: fix cursor flickering in progress bar · 5930aaeb
      Jeremy Schlatter authored
      The previous commit fixed flickering in the progress bar itself. Cursor
      flickering is harder to address.
      
      Cursor flickering could be fixed by hiding the cursor altogether while
      the progress bar is displayed. The downside of this is that if the
      program is killed in such a way that it can't clean up its state, it
      would leave the cursor invisible.
      
      Instead, this commit introduces an output buffer. All of the escape
      codes and content for a single progress update are written to a buffer,
      which is then flushed to the terminal all at once. This significantly
      decreases the time during which the terminal has seen the cursor-hiding
      code but has not yet seen the cursor-showing code, thus minimizing (but
      not 100% eliminating) cursor flickering.
      
      For more context, see:
      https://gitlab.gnome.org/GNOME/vte/-/issues/2837#note_2269501
      5930aaeb
    • Jeremy Schlatter's avatar
      cmd: fix progress bar flickering · faf67db0
      Jeremy Schlatter authored
      Previous code cleared the display before writing new content, creating a
      window where the terminal could (and in some cases did) render empty lines.
      
      Instead, we now write new content over the old content, only clearing
      the trailing end of lines for cases where the new line is shorter.
      
      Fixes #1664
      faf67db0
  3. 12 Aug, 2024 1 commit
  4. 02 Aug, 2024 1 commit
  5. 04 Jun, 2024 1 commit
  6. 26 Mar, 2024 1 commit
  7. 09 Jan, 2024 1 commit
  8. 28 Nov, 2023 1 commit
  9. 21 Nov, 2023 3 commits
  10. 20 Nov, 2023 5 commits
  11. 19 Nov, 2023 4 commits
  12. 17 Nov, 2023 6 commits