7 writes to ForegroundColor
Aspire.Dashboard (2)
ConsoleLogs\AnsiParser.cs (2)
227newState.ForegroundColor = color; 239newState.ForegroundColor = null;
Aspire.Dashboard.Tests (5)
ConsoleLogsTests\AnsiParserTests.cs (5)
65var expectedResidualState = new AnsiParser.ParserState() { ForegroundColor = ConsoleColor.Green }; 149Assert.Equal(new AnsiParser.ParserState() { ForegroundColor = ConsoleColor.Green }, result1.ResidualState); 165Assert.Equal(new AnsiParser.ParserState() { ForegroundColor = ConsoleColor.Green, BackgroundColor = ConsoleColor.Green }, result1.ResidualState); 217var expectedResidualState = new AnsiParser.ParserState() { ForegroundColor = ConsoleColor.Green, BackgroundColor = ConsoleColor.Green }; 241var expectedResidualState = new AnsiParser.ParserState() { Bright = true, ForegroundColor = ConsoleColor.Green };
2 references to ForegroundColor
Aspire.Dashboard (2)
ConsoleLogs\AnsiParser.cs (2)
454if (newState.ForegroundColor.HasValue) 517return state.ForegroundColor switch