{"repo":"agauniyal/rang","free":true,"listed":false,"github":"https://github.com/agauniyal/rang","clone":"git clone https://github.com/agauniyal/rang.git","description":"A Minimal, Header only Modern c++ library for terminal goodies 💄✨","language":"C++","stars":1592,"topics":["cli","ansi","rang","cpp","cpp11","console","command-line","color","terminal","cpp14"],"license":"Unlicense","category":"cli-tools","readme_excerpt":"rang Colors for your Terminal. Windows Demo Example usage ------------- Dependencies ------------ rang only depends on C++ standard library, unistd.h system header on unix and windows.h & io.h system headers on windows based systems. In other words, you don't need any 3rd party dependencies. Installation ------------ rang is a single header-only library. Put rang.hpp in the include folder directly into the project source tree or somewhere reachable from your project. Or, if you use the conan package manager, follow these steps: 1. Add a reference to rang to the requires section of your project's conanfile.txt file: [requires] rang/3.1.0@rang/stable 2. Run conan's install command: conan install How to use Rang uses iostream objects - cout / clog / cerr to apply attributes to output text. Since rang aims to support both windows and unix like systems, it takes care of the os specific details and tries to provide a uniform interface. Due to incompatiblities b/w different OS versions, not all kinds of attributes are supported on every system so rang will try to skip the ones which might produce garbage(instead of pushing random ANSI escape codes on your streams). Detection of tty is also handled internally so you don't need to check if application user might redirect output to a file. Need support for non-ansi terminals? Check out Termdb which supports virtually all terminals and their capablities. Apart from setting text attributes, you can also ask rang to override its default b","default_branch":null,"files":null,"tree":[],"storefront":"/r/agauniyal","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/agauniyal/rang/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}