Console output

This commit is contained in:
glax 2023-11-30 15:50:55 +01:00
parent 75e0c85b61
commit f0ccd7be48

View File

@ -77,16 +77,17 @@ public class OSCCollar
Console.ForegroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine($"OSC Collar - Status: {(_allowMoving ? "enabled" : "disabled")}"); Console.WriteLine($"OSC Collar - Status: {(_allowMoving ? "enabled" : "disabled")}");
Console.WriteLine("=============================="); Console.WriteLine("==============================");
Console.WriteLine($"GPS 1:...............{GPS1.Distance:0.000000}"); Console.WriteLine($"GPS 1:................{GPS1.Distance:0.000000}");
Console.WriteLine($"GPS 2:...............{GPS2.Distance:0.000000}"); Console.WriteLine($"GPS 2:................{GPS2.Distance:0.000000}");
Console.WriteLine($"GPS 3:...............{GPS3.Distance:0.000000}"); Console.WriteLine($"GPS 3:................{GPS3.Distance:0.000000}");
Console.WriteLine($"Position X:..........{_posX:0.000000}"); Console.WriteLine($"Position X:.........{_posX:'.'0.00000;'-'0.00000}");
Console.WriteLine($"Position Y:..........{_posY:0.000000}"); Console.WriteLine($"Position Y:.........{_posY:'.'0.00000;'-'0.00000}");
Console.WriteLine($"Stretch:.............{_leashStretch:0.0000}"); Console.WriteLine($"Stretch:..............{_leashStretch:0.00000}");
Console.WriteLine($"Vertical Movement:...{verticalMovement:0.0000}"); Console.WriteLine($"Vertical Movement:..{verticalMovement:' '0.00000;'-'0.00000}");
Console.WriteLine($"Horizontal Movement:.{horizontalMovement:0.0000}"); Console.WriteLine($"Horizontal Movement:.{horizontalMovement:' '0.00000;'-'0.00000}");
Console.SetCursorPosition(0, Console.WindowHeight - 2); string nilString = $"/input nil {_nilSent}";
Console.Write($"/input nil sent {_nilSent}"); Console.SetCursorPosition(Console.WindowWidth - nilString.Length - 1, 0);
Console.Write(nilString);
if (Console.WindowHeight < 13) if (Console.WindowHeight < 13)
return; return;