From 20eb6cf83c3c2551390229d2f38b15fd16a43a98 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 17 Aug 2025 21:26:39 +0100 Subject: [PATCH] Colorize some part of device report. --- Aaru/Commands/Device/DeviceReport.cs | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/Aaru/Commands/Device/DeviceReport.cs b/Aaru/Commands/Device/DeviceReport.cs index 0f09b2417..5a7840b57 100644 --- a/Aaru/Commands/Device/DeviceReport.cs +++ b/Aaru/Commands/Device/DeviceReport.cs @@ -819,9 +819,9 @@ sealed class DeviceReportCommand : AsyncCommand for(ushort i = (ushort)(mediaTest.BlockSize ?? 0);; i++) { task.Description = - string.Format(Localization.Core - .Trying_READ_LONG_with_size_0, - i); + string.Format($"[slateblue1]{Localization.Core + .Trying_READ_LONG_with_size_0}[/]", + $"[lime]{i}[/]"); task.Value = i; @@ -938,9 +938,7 @@ sealed class DeviceReportCommand : AsyncCommand dev.Timeout, out _); - AaruLogging.Debug(MODULE_NAME, - "sense = {0}", - sense); + AaruLogging.Debug(MODULE_NAME, "sense = {0}", sense); if(!sense) return; @@ -1142,9 +1140,9 @@ sealed class DeviceReportCommand : AsyncCommand task.Value = i; task.Description = - string.Format(Localization.Core - .Trying_READ_LONG_with_size_0, - i); + string.Format($"[slateblue1]{Localization.Core + .Trying_READ_LONG_with_size_0}[/]", + $"[lime]{i}[/]"); sense = mediaTest.SupportsReadLong16 == true ? dev.ReadLong16(out buffer, @@ -1343,9 +1341,9 @@ sealed class DeviceReportCommand : AsyncCommand task.Value = i; task.Description = - string.Format(Localization.Core - .Trying_READ_LONG_with_size_0, - i); + string.Format($"[slateblue1]{Localization.Core + .Trying_READ_LONG_with_size_0}[/]", + $"[lime]{i}[/]"); sense = mediaTest.SupportsReadLong16 == true ? dev.ReadLong16(out buffer, @@ -1460,9 +1458,9 @@ sealed class DeviceReportCommand : AsyncCommand { task.Value = i; - task.Description = - string.Format(Localization.Core.Trying_READ_LONG_with_size_0, - i); + task.Description = string.Format($"[slateblue1]{Localization.Core + .Trying_READ_LONG_with_size_0}[/]", + $"[lime]{i}[/]"); sense = report.SCSI.ReadCapabilities.SupportsReadLong16 == true ? dev.ReadLong16(out buffer,