Skip to content

Add ANSI reset to log lines to prevent colour bleed #14

@shellicar

Description

@shellicar

When tool output contains ANSI colour codes and gets truncated (e.g. tsc error output with red background), the terminal retains the stale background colour until another log line happens to set a different colour.

Fix: Emit \x1b[0m (full ANSI reset) at the start of each logLine() call in Terminal, clearing any residual fg/bg colour from prior output before writing the timestamp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions