Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/official-notfishvr/fish-console-lib

This is a Console Lib for your Console app!
https://github.com/official-notfishvr/fish-console-lib

c-sharp console console-lib csharp lib

Last synced: about 1 month ago
JSON representation

This is a Console Lib for your Console app!

Awesome Lists containing this project

README

        

# Fish-Console-Lib

Fish-Console-Lib is a library designed to enhance your console applications by providing advanced logging functionalities, including color support.

## Features

- Simple integration with existing console applications
- Support for colored output

## Installation

To use Fish-Console-Lib, add the library to your project through DLL in your project references.

## Usage

### Without Color

You can use Fish-Console-Lib without color support as shown below:

```csharp
using Console = ConsoleLib.Console;

namespace ConsoleApp
{
public class Logger
{
public void Write(string message)
{
Console.Write(message);
}
}
}
```

### With Color

To add color support to your console output, you can specify a color for the message:

```csharp
using Console = ConsoleLib.Console;
using System.Drawing;

namespace ConsoleApp
{
public class Logger
{
public void Write(string message)
{
Console.Write(message, Color.BlueViolet);
}
}
}
```

## Acknowledgments

Some code and inspiration were taken from various sources. Special thanks to them.