Hyprx.Ansi 0.0.0-alpha.3

This is a prerelease version of Hyprx.Ansi.
dotnet add package Hyprx.Ansi --version 0.0.0-alpha.3
                    
NuGet\Install-Package Hyprx.Ansi -Version 0.0.0-alpha.3
                    
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="Hyprx.Ansi" Version="0.0.0-alpha.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hyprx.Ansi" Version="0.0.0-alpha.3" />
                    
Directory.Packages.props
<PackageReference Include="Hyprx.Ansi" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Hyprx.Ansi --version 0.0.0-alpha.3
                    
#r "nuget: Hyprx.Ansi, 0.0.0-alpha.3"
                    
#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.
#:package Hyprx.Ansi@0.0.0-alpha.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Hyprx.Ansi&version=0.0.0-alpha.3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Hyprx.Ansi&version=0.0.0-alpha.3&prerelease
                    
Install as a Cake Tool

Hyprx.Ansi

Overview

The libraries provides basic ansi terminal formatting, color detection, and setting the windows console mode to enable 24bit colors.

Usage

using static Hyprx.Ansi;

Console.WriteLine($"task was ${Bold(Green("completed"))}");
Console.WriteLine($"{Rgb24(0xff7b00, "Orange")} you glad you met me?");
Console.WriteLine($"What rhymes with {Rgb8(202, "orange")}?");
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Hyprx.Ansi:

Package Downloads
Hyprx.Rex.Console

The Hyprx.Rex.Console package enables you to create a cli task runner or a make-like experience in .NET within console projects or using `dotnet run app.cs` (single files).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.0-alpha.3 124 7/10/2025
0.0.0-alpha.2 114 7/10/2025
0.0.0-alpha.1 123 6/25/2025
0.0.0-alpha.0 123 6/17/2025

# Hyprx.Ansi Changelog

## 0.0.0-alpha.0

- AnsiDetector for detecting the color mode e.g. none, 4bit, 8bit, and 24bit
- Ansi static methods for applying basic 4bit styles and methods like rgb24 that
 allows setting a truecolor.
- For Windows, ENABLE_VIRTUAL_TERMINAL_PROCESSING is set for the Console mode.