Skip to content
/ cpp-term Public

A small C++ library for stylish terminal output using ANSI escape sequences.

License

Notifications You must be signed in to change notification settings

nluka/cpp-term

Repository files navigation

cpp-term

A small C++ library for stylish terminal output using ANSI escape sequences.

Using

This is a source-based library, so copy term.cpp and term.hpp somewhere into your project and #include "term.hpp" wherever you want to use it.

Testing

It's a good idea to check if the library works on your target terminal, as ANSI escape sequence support varies. This library uses only the most common sequences so all somewhat-new terminals should work 100%, but if you want to verify here's how:

To test the logic of the library, run:

make logic

To test the visuals of the library, run:

make visuals

If your terminal supports the necessary escape sequences, your output should resemble:

About

A small C++ library for stylish terminal output using ANSI escape sequences.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published