Skip to content

Clear a line with spaces to prevent a race between stderr and stdout#18

Merged
dkovba merged 2 commits intomainfrom
users/dkovba/vanishing-prompt
Jun 5, 2025
Merged

Clear a line with spaces to prevent a race between stderr and stdout#18
dkovba merged 2 commits intomainfrom
users/dkovba/vanishing-prompt

Conversation

@dkovba
Copy link
Contributor

@dkovba dkovba commented Jun 5, 2025

This PR resolves a race with \u{001B}[2K, but not with \r, which will be addressed in a separate PR by moving progress updates to stdout. Please test it in a small window in your terminal application on the users/a_ramani/install-ux branch using commands:

bin/container system stop
make cleancontent
bin/container system start

You should see the prompt:

Install the recommended default kernel from [https://github.com/kata-containers/kata-containers/releases/download/3.17.0/kata-static-3.17.0-arm64.tar.xz]? [Y/n]:

@dkovba dkovba requested a review from adityaramani June 5, 2025 20:39
@dkovba dkovba merged commit 23b2680 into main Jun 5, 2025
2 checks passed
@dkovba dkovba deleted the users/dkovba/vanishing-prompt branch June 5, 2025 21:12
katiewasnothere pushed a commit that referenced this pull request Jun 5, 2025
…ut` (#18)

This PR resolves a race with `\u{001B}[2K`, but not with `\r`, which
will be addressed in a separate PR by moving progress updates to
`stdout`. Please test it in a small window in your terminal application
on the `users/a_ramani/install-ux` branch using commands:
```
bin/container system stop
make cleancontent
bin/container system start
```
You should see the prompt:
> Install the recommended default kernel from
[https://github.com/kata-containers/kata-containers/releases/download/3.17.0/kata-static-3.17.0-arm64.tar.xz]?
[Y/n]:
owenarthur pushed a commit to owenarthur/container that referenced this pull request Jun 10, 2025
…ut` (apple#18)

This PR resolves a race with `\u{001B}[2K`, but not with `\r`, which
will be addressed in a separate PR by moving progress updates to
`stdout`. Please test it in a small window in your terminal application
on the `users/a_ramani/install-ux` branch using commands:
```
bin/container system stop
make cleancontent
bin/container system start
```
You should see the prompt:
> Install the recommended default kernel from
[https://github.com/kata-containers/kata-containers/releases/download/3.17.0/kata-static-3.17.0-arm64.tar.xz]?
[Y/n]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants