← Back to issue list

`open_stream()` allows control characters through the stream that affect the full output

View original Github issue

Metadata

Project
craft-cli
Number
#415
Type
issue
State
open
Author
lengau
Labels
Status: Triaged Type: Bug
Created
2026-02-03 15:11:03+00:00
Updated
2026-04-23 03:40:13+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description If you're using a stream from the emitter, it can send through control characters. This is mostly fine, except that these control characters can change (for example) the colour of the text output to the full system, and we never reset this. ### To Reproduce Open a stream, send a control character (e.g. changing the text colour, `0;30`) to the stream, and then close the stream and print something else out. ### part yaml ```shell ``` ### Relevant log output ```shell n/a ```

Evaluation history

No evaluation history available.