From 38f08185ec9756c294ea26bd634dc21bc6ffa4d2 Mon Sep 17 00:00:00 2001 From: Geoff Lamrock Date: Tue, 18 Mar 2025 17:04:10 +1100 Subject: [PATCH] Fix issue where stdout text would wrap --- src/Stack/Infrastructure/Commands/Command.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Stack/Infrastructure/Commands/Command.cs b/src/Stack/Infrastructure/Commands/Command.cs index 146080f6..1e786ae3 100644 --- a/src/Stack/Infrastructure/Commands/Command.cs +++ b/src/Stack/Infrastructure/Commands/Command.cs @@ -20,12 +20,14 @@ public Command() ColorSystem = ColorSystemSupport.Detect, Out = new AnsiConsoleOutput(Console.Out), }); + StdOut.Profile.Width = Console.LargestWindowWidth; StdErr = AnsiConsole.Create(new AnsiConsoleSettings { Ansi = AnsiSupport.Detect, ColorSystem = ColorSystemSupport.Detect, Out = new AnsiConsoleOutput(Console.Error), }); + StdErr.Profile.Width = Console.LargestWindowWidth; StdOutLogger = new ConsoleLogger(StdOut); StdErrLogger = new ConsoleLogger(StdErr); InputProvider = new ConsoleInputProvider(StdErr);