Skip to content

Jackojc/tinge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinge

a simple, fast, header-only library for C++ which enables pretty colours on the terminal.

Requirements

  • Only supports terminals which have support for ANSI escape sequences.
  • C++17 compiler needed.
  • Works on Linux and Windows 10.

Examples

example1

Code

// Core functions.
tinge::print("printing!\n");
tinge::log("logging!\n");
tinge::err("errors!\n");

// Logging.
tinge::notice("notice!\n");
tinge::warn("warning!\n");
tinge::error("error!\n");
tinge::success("success!\n");

// All of the above have newline versions. i.e. `println();`


// Use styles.
tinge::println(tinge::bold, "emphasis");


// Use indentation.
tinge::warnln(tinge::before{tinge::tab(2)}, "2 tabs");

About

a simple, fast, header-only library for C++ which enables pretty colours on the terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published