Alcuino.ConsoleWriter472
1.4.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 Alcuino.ConsoleWriter472 --version 1.4.0
NuGet\Install-Package Alcuino.ConsoleWriter472 -Version 1.4.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="Alcuino.ConsoleWriter472" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Alcuino.ConsoleWriter472 --version 1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Alcuino.ConsoleWriter472, 1.4.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 Alcuino.ConsoleWriter472 as a Cake Addin #addin nuget:?package=Alcuino.ConsoleWriter472&version=1.4.0 // Install Alcuino.ConsoleWriter472 as a Cake Tool #tool nuget:?package=Alcuino.ConsoleWriter472&version=1.4.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ConsoleWriter472
ConsoleWriter472 is a C# utility class designed to enhance console output capabilities with additional features for text alignment, colors, typewriter-like effects, and structured formatting.
Methods
- Write()
- WriteLine()
- WriteColumn()
- WriteHeader()
- TypeWrite()
- TypeWriteLine()
- ReadLine()
Features
Typewriter Mode
- Simulate the typewriter effect with customizable typing speeds.
- Control individual character or word-by-word typing.
Text Formatting
- Write and write lines of text with custom foreground and background colors.
- Format text into visually appealing columns with specified alignment and colors.
Header Display
- Create centered headers with customized foreground and background colors.
- Design headers with borders for a structured display.
Input Handling
- Read user input with customizable prompt colors.
Usage
Typewriter Mode
// Enable typewriter mode
ConsoleWriter.IsTypeWriterMode = true;
// Set typing speed (in milliseconds)
ConsoleWriter.TypeWriterSpeed = 2;
// Write text with typewriter effect
ConsoleWriter.TypeWrite("Hello, World!");
Text Formatting
// Write text with custom colors
ConsoleWriter.Write("Hello, World!", ConsoleColor.Green, ConsoleColor.Black);
// Write a line of text with custom colors
ConsoleWriter.WriteLine("Welcome!", ConsoleColor.Yellow, ConsoleColor.Blue);
// Create formatted columns
string[] columnData = { "Column 1", "Column 2", "Column 3" };
ConsoleWriter.WriteColumn(columnData, Align.Center, 15, ConsoleColor.Cyan, ConsoleColor.Magenta);
// Create formatted columns with customize max characters per column
Dictionary<string, int> columnData = new Dictionary<string, int>()
{
{ "Column 1", 8 },
{ "Column 2", 8 },
{ "Column 3", 16 }
};
ConsoleWriter.WriteColumn(columnData, Align.Center, ConsoleColor.Cyan, ConsoleColor.Magenta);
Header Display
// Display a header with custom colors
ConsoleWriter.WriteHeader("ConsoleWriter472", ConsoleColor.White, ConsoleColor.DarkBlue, 30);
Text Input
// Prompt user for input
string userInput = ConsoleWriter.ReadLine(ConsoleColor.Yellow);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- 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.
Summary of changes made in this release of the package.