PrettyConsole 2.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package PrettyConsole --version 2.1.1
NuGet\Install-Package PrettyConsole -Version 2.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PrettyConsole" Version="2.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PrettyConsole --version 2.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PrettyConsole, 2.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PrettyConsole as a Cake Addin #addin nuget:?package=PrettyConsole&version=2.1.1 // Install PrettyConsole as a Cake Tool #tool nuget:?package=PrettyConsole&version=2.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CHANGELOG
v2.1.0 - v2.1.1
- Fixed default colors, previously colors where defaulted to
Color.Gray
for foreground andColor.Black
for background, however many shells have custom colors that they render by default, which means the default colors seemed to render in a non ordinary fashion. The default colors now areColor.Unknown
which will actually use the colors of the shell. ProgressBar
now implementsIDisposable
since the implementation has been optimized, make sure to dispose of it, lest you induce a penalty on other such optimization which are now spread across the library.- Introduced an overload to
Write
that accepts anyT : ISpanFormattable
. In many cases users might want to print structs or other types that implement this interface such asint
,double
,DateTime
and more... splitting the output into a few lines and using this overload will enable you completely avoid the string allocation for this object, the overload is using a fixed size buffer to format the item and prints it using a span. However, this limitation means that if the formatted item is longer than 50 characters, an exception will be thrown indicating that you should use a different overload.
Note
Reviewing the codebase, I can already see that there are many places which will greatly benefit from the upcoming features of .NET 9. Features such as the params ReadOnlySpan<T>
feature would enable me to delete a lot of overloads without decreasing compatibility, yet gain a performance boost.
Expect a new version soon after .NET 9 is released.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
3.1.0 | 172 | 11/14/2024 | |
3.0.0 | 278 | 10/21/2024 | |
3.0.0-rc.2 | 42 | 10/16/2024 | |
3.0.0-rc.1 | 49 | 10/11/2024 | |
2.1.1 | 139 | 8/25/2024 | |
2.1.0 | 115 | 8/23/2024 | |
2.0.0 | 169 | 3/2/2024 | |
1.6.1 | 257 | 6/30/2023 | |
1.6.0 | 217 | 6/26/2023 | |
1.5.2 | 249 | 4/14/2023 | |
1.5.1 | 355 | 12/21/2022 | |
1.5.0 | 403 | 12/4/2022 | |
1.4.0 | 477 | 8/4/2022 | |
1.3.0 | 468 | 7/14/2022 | |
1.2.0 | 451 | 7/5/2022 | |
1.1.0 | 451 | 6/18/2022 | |
1.0.2 | 476 | 6/14/2022 | |
1.0.1 | 492 | 6/14/2022 | |
1.0.0 | 509 | 6/12/2022 |