Skip to content

ANSI color not working on CMD/Powershell but working on Terminal APP #3384

@kery

Description

@kery

CMD (not working)
Image

Terminal (working)
Image

Code

    let stdout_layer = fmt::layer()
        .with_writer(std::io::stdout)
        .with_ansi(true)
        .with_target(false);
    tracing_subscriber::registry().with(stdout_layer).init();

Version

tracing = { version = "0.1.41", default-features = false }
tracing-subscriber = { version = "0.3.20", default-features = false, features = [
    "ansi",
    "fmt",
    "std",
] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions