← Back to issue list

Multi-line permanent progress doesn't overwrite temporary progress

View original Github issue

Metadata

Project
craft-cli
Number
#371
Type
issue
State
open
Author
jonathan-conder
Labels
Created
2025-08-11 03:09:48+00:00
Updated
2026-04-23 04:00:48+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description I assumed it was possible to pass multi-line strings to `emit.progress`. At least, craft-application does it. However, the first line doesn't overwrite the existing progress line if it was longer. ### To Reproduce ```python from craft_cli import EmitterMode, emit emit.init(EmitterMode.BRIEF, appname="testcraft", greeting="Greeting") emit.progress("foo foo foo") emit.progress("bar\nbar", permanent=True) ``` Expected output: ``` bar bar ``` Actual output: ``` bar foo foo bar ``` ### part yaml ```shell ``` ### Relevant log output ```shell 2025-08-11 15:02:50.183 Greeting 2025-08-11 15:02:50.183 foo foo foo 2025-08-11 15:02:50.183 bar bar ```

Evaluation history

No evaluation history available.