PrettyConsole 2.1.0
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.0
NuGet\Install-Package PrettyConsole -Version 2.1.0
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.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PrettyConsole --version 2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PrettyConsole, 2.1.0"
#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.0 // Install PrettyConsole as a Cake Tool #tool nuget:?package=PrettyConsole&version=2.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CHANGELOG
v2.1.0
- 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 very optimized, writes it directly to the stack and prints it using a span. However, this limitation means that if the formatted item is longer than 256 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 | 203 | 11/14/2024 | |
3.0.0 | 280 | 10/21/2024 | |
3.0.0-rc.2 | 44 | 10/16/2024 | |
3.0.0-rc.1 | 51 | 10/11/2024 | |
2.1.1 | 141 | 8/25/2024 | |
2.1.0 | 117 | 8/23/2024 | |
2.0.0 | 171 | 3/2/2024 | |
1.6.1 | 259 | 6/30/2023 | |
1.6.0 | 219 | 6/26/2023 | |
1.5.2 | 251 | 4/14/2023 | |
1.5.1 | 357 | 12/21/2022 | |
1.5.0 | 405 | 12/4/2022 | |
1.4.0 | 479 | 8/4/2022 | |
1.3.0 | 470 | 7/14/2022 | |
1.2.0 | 453 | 7/5/2022 | |
1.1.0 | 453 | 6/18/2022 | |
1.0.2 | 478 | 6/14/2022 | |
1.0.1 | 494 | 6/14/2022 | |
1.0.0 | 511 | 6/12/2022 |