NeoKolors.Console
0.25.18
See the version list below for details.
dotnet add package NeoKolors.Console --version 0.25.18
NuGet\Install-Package NeoKolors.Console -Version 0.25.18
<PackageReference Include="NeoKolors.Console" Version="0.25.18" />
<PackageVersion Include="NeoKolors.Console" Version="0.25.18" />
<PackageReference Include="NeoKolors.Console" />
paket add NeoKolors.Console --version 0.25.18
#r "nuget: NeoKolors.Console, 0.25.18"
#:package NeoKolors.Console@0.25.18
#addin nuget:?package=NeoKolors.Console&version=0.25.18
#tool nuget:?package=NeoKolors.Console&version=0.25.18
NeoKolors.Console
This package has basic console utilities like colored text writing and fancy debugging functions.
Contents
ConsoleColors
This class contains functions for writing colored text to console.
Example:
string test = "Lorem ipsum dolor sit amet...";
ConsoleColors.PrintlnColored(test, 0xff0000);
This code will print red text.
Debug
Contains 5 functions for sending colored debug messages to console and a function for printing fancy exception messages to console.
Debug message methods:
- Fatal - fatal error. Program should end after calling this.
- Error - non-fatal error.
- Warn - warning. Something wrong can happen.
- Info - info. Something happened.
- Msg - for debugging. Does not work when debug build mode is off.
Exception methods:
- Throw - for throwing exceptions with fancy styles.
- PrintException - for printing exceptions with fancy styles.
Example of throwing a fancy exception:
try
{
int i = 1 / 0; // this would throw a DivideByZeroException
}
catch (Exception e)
{
Debug.Throw(e);
}
When an exception is thrown using Debug.Throw, the exception itself is not thrown, the actual type is
FancyException<TException> where the TException is the actual type of the exception.
Example of catching a fancy exception:
try
{
// some code that throws a fancy exception (for example DivideByZeroException)
}
catch (FancyException<DivideByZeroException> e)
{
// some things to do when the exception is caught
}
A lot of things in this class can be customized. For example, you can change the colors of the debug messages or the exception messages. Go to Debug.Settings for more information.
ConsoleProgressBar
Prints an interactive progress bar to the console, that updates as a task is being completed.
Usage:
public static event EventHandler Event;
public static void Main()
{
int start = 0;
int end = 4000;
ConsoleProgressBar bar = new ConsoleProgressBar(start, end, 40, ConsoleProgressBar.BarStyle.MODERN);
Event += bar.OnProgressUpdate;
for (int i = start; i < end; i++)
{
var g = new ImageGenerator(400, 400, i);
var bmp = g.GenerateImage();
bmp.Save($@".\{SeedFormat.WordFromSeed(i)}.png", ImageFormat.Png);
Event.Invoke(null, EventArgs.Empty);
}
}
This will make a progress bar that updates when a new image is generated and saved.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- NeoKolors.Common (>= 0.25.18.1)
- System.Text.RegularExpressions (>= 4.3.1)
-
net5.0
- NeoKolors.Common (>= 0.25.18.1)
- System.Text.RegularExpressions (>= 4.3.1)
-
net8.0
- NeoKolors.Common (>= 0.25.18.1)
- System.Text.RegularExpressions (>= 4.3.1)
-
net9.0
- NeoKolors.Common (>= 0.25.18.1)
- System.Text.RegularExpressions (>= 4.3.1)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on NeoKolors.Console:
| Package | Downloads |
|---|---|
|
NeoKolors.Settings
Package Description |
|
|
NeoKolors.Tui
Package Description |
|
|
NeoKolors.Tui.Core
Package Description |
|
|
NeoKolors.Tui.Elements
Package Description |
|
|
NeoKolors.Tui.Widgets
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.4.0-preview.4 | 85 | 11/15/2026 |
| 2026.4.0-preview.3 | 110 | 11/1/2026 |
| 2026.4.0-preview.2 | 95 | 10/30/2026 |
| 2026.4.0-preview.1 | 103 | 10/23/2026 |
| 2026.2.0-rc2 | 181 | 6/8/2026 |
| 2026.2.0-rc1 | 162 | 6/2/2026 |
| 2026.1.0-beta2 | 148 | 2/27/2026 |
| 2026.1.0-beta1 | 139 | 2/25/2026 |
| 1.0.0-rc1 | 552 | 7/24/2025 |
| 0.25.22 | 320 | 5/26/2025 |
| 0.25.21.1 | 219 | 5/21/2025 |
| 0.25.20 | 318 | 5/13/2025 |
| 0.25.18 | 224 | 5/4/2025 |
| 0.25.16 | 275 | 4/16/2025 |
| 0.25.14.7 | 236 | 4/2/2025 |
| 0.25.14.6 | 231 | 4/2/2025 |