Skip to content

Nicktrovert/ANSI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANSIString

ANSIString is a C# library for creating and manipulating ANSI escape sequences for terminal text formatting. It allows you to easily add colors, styles, and other text attributes to your terminal output.

Features

  • Apply text colors (foreground and background)
  • Add text styles (bold, italic, underline, etc.)
  • Combine multiple styles and colors
  • Reset text formatting

Installation

  • Download the latest version from Releases
  • Place the ANSI.dll file somewhere accessible
  • add a reference to the ANSI.dll file in your solution.

Usage

Here's a simple example of how to use ANSIString:

using ANSI.String;

class Program
{
    static void Main()
    {
        ANSIString text = new ANSIString();
        text.Value = "Hello, World!";
        text.Bold = true;
        text.SetForegroundColor(255, 0, 0); // Red text
        Console.WriteLine(text);
    }
}

Documentation

For detailed documentation and examples, please refer to the source code and comments within the code.

Contributing

There are currently no set guidelines for contributions.

License

ANSIString is licensed under the MIT License. See the License file for more information.

About

Terminal Text manipulation using ANSI Escape Codes automated via shitty library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages