System-rat / ansi

A simple C++ ANSI terminal library
https://system-rat.github.io/ansi/
MIT License
0 stars 0 forks source link

Merge the format strings feature #2

Closed System-rat closed 2 years ago

System-rat commented 2 years ago

Implemented the format strings feature for generating easy format strings.

An example of the formatting language:

#include <iostream>
#include <Ansi>

int main() {
    std::cout << ANSI("#[Bold, Red, Underline, Italic]##TEXT##") << std::endl;
}

This should print out bold, underlined, and italic red text: #TEXT#

The parsed string is automatically cached