public CommandTextWriter(TextWriter writer) : this(writer, Console.IsOutputRedirected == true ? int.MaxValue : Console.BufferWidth) { }