Skip to content

Commit

Permalink
fix progressline blinking with logging above
Browse files Browse the repository at this point in the history
  • Loading branch information
kattouf committed Sep 2, 2024
1 parent 197fdf6 commit cc056b2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/ProgressLineController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ final actor ProgressLineController {

func didGetStdinDataChunk(_ data: Data) async {
guard case .stdin = textMode else {
// we will redraw anyway to sync (prevent flickering) with other log controllers
await redrawProgressLine()
return
}

Expand Down
30 changes: 30 additions & 0 deletions Tests/snapshots/static_text.snapshot
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
<activity> <duration> ❯ Static text
✓ <duration> ❯ Static text

0 comments on commit cc056b2

Please sign in to comment.