1- # cpp_sgr Usage Guide
2- [ ![ pipeline status] ( https://gitlab.com/mrhatch/cpp_sgr/badges/master/pipeline.svg )] ( https://gitlab.com/mrhatch/cpp_sgr/commits/master )
1+ cpp_sgr
2+ ======
3+ [ ![ pipeline status] ( https://gitlab.com/mrhatch/cpp_sgr/badges/master/pipeline.svg )] ( https://gitlab.com/mrhatch/cpp_sgr/commits/master ) [ Doxygen Reference] ( https://mrhatch.gitlab.io/cpp_sgr )
34
45cpp_sgr is a library to ease the use of SGRs in programs producing output to
56a terminal. SGRs (Select Graphic Renditions) are special character sequences
@@ -9,6 +10,10 @@ an interface that abstracts the ugly magic strings specifying SGRs behind
910convenient mnemonics, and automatically handles clearing SGRs when they
1011are no longer needed.
1112
13+ SGRs in action:
14+
15+ ![ SGR Demonstration] ( docs/img/demo.png )
16+
1217## Basics
1318
1419Since this library is designed with ease of use in mind, usage is simple.
@@ -137,10 +142,10 @@ std::cerr << cpp_sgr::red_bg << "Some text" << cpp_sgr::reset << "\n";
137142
138143## Installation
139144
140- To install this library for use in a project, simply copy ` include/sgr.hpp ` to
141- the system include directory or a project-specific include directory.
142- Include ` sgr.hpp ` to make it available.
145+ To install this library for use in a project, simply copy ` include/sgr.hpp ` to a
146+ project-specific include directory, or use CMake to install the library to the
147+ system include directory and use find_package to import it into a CMake project.
148+ Include ` cpp_sgr/sgr.hpp ` to make it available.
143149
144- A demonstration program has been provided, along with a Doxygen configuration
145- file. If desired, the accompanying CMake configuration file can be used
146- to build the demo file and Doxygen documentation.
150+ A demonstration program has been provided, built as ` demo ` , which showcases the
151+ functionality of the library.
0 commit comments