ANSI Lib is a multi-language library that makes the use of ANSI Escape Codes easier.
The ANSI Lib library has support for multiple languages, with more planned. Currently, ANSI Lib has support (and planned support) for the following languages:
- C/C++
- Javascript
- Typescript
The way to use it differs based on the language.
To use ANSI Lib in any C/C++ project, just download the ansi_lib.h
file and
add it to your includes folder, and you are up and running.
Due to compatibility reasons for some terminal emulators, the function setupConsole()
must be called before utilizing the library.
To use ANSI Lib in any Javascript project, you will need to install it using npm
using the following command:
> npm i ansi-lib
Note: The library will not work for browser terminals.
To be added