36 references to AnsiParser
Aspire.Dashboard (3)
Components\Pages\ConsoleLogs.razor.cs (1)
507
writer.WriteLine(
AnsiParser
.StripControlSequences(entry.RawContent));
ConsoleLogs\LogParser.cs (2)
11
private
AnsiParser
.ParserState? _residualState;
42
var conversionResult =
AnsiParser
.ConvertToHtml(updatedText, _residualState);
Aspire.Dashboard.Tests (33)
ConsoleLogsTests\AnsiParserTests.cs (33)
19
var result =
AnsiParser
.ConvertToHtml(input);
40
var result =
AnsiParser
.ConvertToHtml(input);
54
var result =
AnsiParser
.ConvertToHtml(input);
65
var expectedResidualState = new
AnsiParser
.ParserState() { ForegroundColor = ConsoleColor.Green };
66
var result =
AnsiParser
.ConvertToHtml(input);
77
var result =
AnsiParser
.ConvertToHtml(input);
88
var result =
AnsiParser
.ConvertToHtml(input);
99
var result =
AnsiParser
.ConvertToHtml(input);
110
var result =
AnsiParser
.ConvertToHtml(input);
121
var result =
AnsiParser
.ConvertToHtml(input);
132
var result =
AnsiParser
.ConvertToHtml(input);
145
var result1 =
AnsiParser
.ConvertToHtml(input1);
146
var result2 =
AnsiParser
.ConvertToHtml(input2, result1.ResidualState);
149
Assert.Equal(new
AnsiParser
.ParserState() { ForegroundColor = ConsoleColor.Green }, result1.ResidualState);
161
var result1 =
AnsiParser
.ConvertToHtml(input1);
162
var result2 =
AnsiParser
.ConvertToHtml(input2, result1.ResidualState);
165
Assert.Equal(new
AnsiParser
.ParserState() { ForegroundColor = ConsoleColor.Green, BackgroundColor = ConsoleColor.Green }, result1.ResidualState);
189
var result =
AnsiParser
.ConvertToHtml(input);
206
var result =
AnsiParser
.ConvertToHtml(input);
217
var expectedResidualState = new
AnsiParser
.ParserState() { ForegroundColor = ConsoleColor.Green, BackgroundColor = ConsoleColor.Green };
218
var result =
AnsiParser
.ConvertToHtml(input);
229
var expectedResidualState = new
AnsiParser
.ParserState() { Bright = true, BackgroundColor = ConsoleColor.Green };
230
var result =
AnsiParser
.ConvertToHtml(input);
241
var expectedResidualState = new
AnsiParser
.ParserState() { Bright = true, ForegroundColor = ConsoleColor.Green };
242
var result =
AnsiParser
.ConvertToHtml(input);
253
var result =
AnsiParser
.ConvertToHtml(input);
267
var result =
AnsiParser
.ConvertToHtml(input);
281
var result =
AnsiParser
.ConvertToHtml(input);
291
var result =
AnsiParser
.ConvertToHtml(input);
302
var result =
AnsiParser
.ConvertToHtml(input);
312
var result =
AnsiParser
.ConvertToHtml(input);
329
var result =
AnsiParser
.StripControlSequences(input);
346
var result =
AnsiParser
.StripControlSequences(input);