Skip to content
/ rang Public
forked from agauniyal/rang

A Minimal, Header only Modern c++ library for colors in your terminal 💄✨

License

Notifications You must be signed in to change notification settings

wyrover/rang

 
 

Repository files navigation

rang Build Status Build status Coverage Status

Colors for your Terminal.

rang-demo rang-windows-demo


How to use it

No build system/package manager

  1. You just need rang.hpp from include directory, use it as #include "rang.hpp"
  2. Check out the wiki & maybe glance inside test directory to see some usage
  3. ???
  4. Profit!!

Using Meson build system

  • Use wrapdb to find rang dependency
  • Place this code inside your primary meson.build - rang_dep = dependency('rang', fallback : ['rang', 'rang_dep'])
  • Make sure to include rang_dep as dependency wherever you need it.

Using Conan package manager

[requires]
rang/2.0@agauniyal/stable

...

and CMakeLists.txt with -

INCLUDE(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
CONAN_BASIC_SETUP()

ADD_EXECUTABLE(executable_name main.cpp)
TARGET_LINK_LIBRARIES(executable_name ${CONAN_LIBS})
  • create build directory - mkdir build && cd build
  • install package and build - conan install .. && cmake .. && make

About

A Minimal, Header only Modern c++ library for colors in your terminal 💄✨

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 99.6%
  • Other 0.4%