Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made instructions more concise #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ Or, if you use the [conan package manager](https://www.conan.io/), follow these

## 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.
*Rang* uses iostream objects - `cout`/`clog`/`cerr` to apply attributes to output text. *Rang* aims to support both windows and unix-like systems. Furthermore, *rang* resolves OS specific details and provides a uniform interface. Due to incompatibilities between different OS versions, not every attribute is supported, so *rang* attempts to resolve the issues instead of pushing random ANSI escape codes on your streams. Detection of tty is handled internally, therefore, checks are not needed when a user redirects output to a file.

> **Need support for non-ansi terminals? Check out [Termdb](https://github.com/agauniyal/termdb) which supports virtually all terminals and their capablities.**
> **Need support for non-ansi terminals? Check out [Termdb](https://github.com/agauniyal/termdb) which supports most terminals and their capablities.**

Apart from setting text attributes, you can also ask rang to override its default behaviour through these methods -
Apart from setting text attributes, rang can override its default behaviour through these methods -
```cpp
void rang::setControlMode(rang::control);
```
Expand Down