fix formatting issue 2 with core dump

This commit is contained in:
2026-05-20 11:22:55 +02:00
parent 4cf0fdb6a0
commit 4874bf096c
3 changed files with 7 additions and 5 deletions
Binary file not shown.
+3 -1
View File
@@ -74,7 +74,9 @@ public static class KeySelectionScreen
.Title("[bold]Select HDBUSERSTORE key:[/]") .Title("[bold]Select HDBUSERSTORE key:[/]")
.PageSize(15) .PageSize(15)
.HighlightStyle(Style.Parse("bold dodgerblue1")) .HighlightStyle(Style.Parse("bold dodgerblue1"))
.UseConverter(name => displayMap.TryGetValue(name, out var label) ? label : name) .UseConverter(name => displayMap.TryGetValue(name, out var label)
? Markup.Escape(label)
: Markup.Escape(name))
.AddChoices(choiceNames); .AddChoices(choiceNames);
var selected = AnsiConsole.Prompt(prompt); var selected = AnsiConsole.Prompt(prompt);
+4 -4
View File
@@ -52,7 +52,7 @@ public static class OperationForms
{ {
manualSentinel => "[ Enter manually ]", manualSentinel => "[ Enter manually ]",
cancelSentinel => "[ Cancel ]", cancelSentinel => "[ Cancel ]",
_ => v, _ => Markup.Escape(v),
}) })
.AddChoices(choiceValues); .AddChoices(choiceValues);
@@ -89,7 +89,7 @@ public static class OperationForms
private static void PrintOperationHeader(string title) private static void PrintOperationHeader(string title)
{ {
AnsiConsole.Clear(); AnsiConsole.Clear();
var rule = new Rule($"[bold dodgerblue1]{title}[/]").RuleStyle(Style.Parse("dodgerblue1")); var rule = new Rule($"[bold dodgerblue1]{Markup.Escape(title)}[/]").RuleStyle(Style.Parse("dodgerblue1"));
AnsiConsole.Write(rule); AnsiConsole.Write(rule);
AnsiConsole.WriteLine(); AnsiConsole.WriteLine();
} }
@@ -101,8 +101,8 @@ public static class OperationForms
table.AddColumn("[bold]Parameter[/]"); table.AddColumn("[bold]Parameter[/]");
table.AddColumn("[bold]Value[/]"); table.AddColumn("[bold]Value[/]");
foreach (var (k, v) in fields) foreach (var (k, v) in fields)
table.AddRow($"[dim]{k}[/]", $"[yellow]{Markup.Escape(v)}[/]"); table.AddRow($"[dim]{Markup.Escape(k)}[/]", $"[yellow]{Markup.Escape(v)}[/]");
AnsiConsole.MarkupLine($"[bold]{title}[/]"); AnsiConsole.MarkupLine($"[bold]{Markup.Escape(title)}[/]");
AnsiConsole.Write(table); AnsiConsole.Write(table);
AnsiConsole.WriteLine(); AnsiConsole.WriteLine();