Skip to content

rang::style::reset also resets rang::fgΒ #133

@asmaloney

Description

@asmaloney

If I do this:

std::cout << rang::fg::blue << "foo: " << rang::style::bold << "some text"
         << rang::style::reset << " (some more text)" << std::endl;

I get this:

Screen Shot 2023-03-18 at 14 39 48 PM

but since I didn't reset fg, I expected to see this:

Screen Shot 2023-03-18 at 14 40 16 PM

Is this expected behaviour? The docs seem to imply this should not be happening.

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