Skip to content

Console colour not being reset before fsharp-analyzers cli tool exits? #215

@Numpsy

Description

@Numpsy

When testing #214 I got this in my console (Windows 10 with windows terminal):

image

i.e. it printed the analyzer suggestion in blue, and then left the console colour set to blue such that the next prompt was blue.

I wonder whether

member private _.ResetColor() = Console.ForegroundColor <- origColor
should be writing out the escape codes to reset the colour rather than just setting Console.ForegroundColor ?

Maybe it'd also be fixed by #180 though, I haven't tested it.

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