我有一个在 Jenkins 构建中执行的 Powershell 构建步骤,控制台将输出包装在第 80 列(这似乎是默认值)。有没有办法防止这种列换行,并让 Jenkins 使用更适合我们期望的输出的列宽度?
正如标题所说,我想把它放在屏幕的左下角.这是我到目前为止的代码:
Console.WindowWidth = 50
Console.WindowHeight = 3
Console.BufferWidth = 50
Console.BufferHeight = 3
Console.BackgroundColor = ConsoleColor.Black
Console.ForegroundColor = ConsoleColor.DarkMagenta
Console.Title = "My Title"
Console.WriteLine("")
Console.Write(" Press any key to close this window ...")
Console.ReadKey()
Run Code Online (Sandbox Code Playgroud)