https://github.com/envygeeks/simple-ansi
:art: A super simple Ansi library that does only what it needs to do.
https://github.com/envygeeks/simple-ansi
ansi ruby stdlib
Last synced: 11 months ago
JSON representation
:art: A super simple Ansi library that does only what it needs to do.
- Host: GitHub
- URL: https://github.com/envygeeks/simple-ansi
- Owner: envygeeks
- License: mit
- Created: 2016-01-03T04:45:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-11T19:01:58.000Z (over 10 years ago)
- Last Synced: 2025-07-28T15:17:15.164Z (11 months ago)
- Topics: ansi, ruby, stdlib
- Language: Ruby
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[][travis]
[][coverage]
[][codeclimate]
[][gemnasium]
[gemnasium]: https://gemnasium.com/envygeeks/simple-ansi
[codeclimate]: https://codeclimate.com/github/envygeeks/simple-ansi
[coverage]: https://codeclimate.com/github/envygeeks/simple-ansi/coverage
[travis]: https://travis-ci.org/envygeeks/simple-ansi
# Simple ANSI
Provides a key set of colors and ANSI for your projects, it's simple, it's meant to be used at the most basic level, and was originally embedded into Docker-Template but has become encapsulated to use across all my projects.
## Current Helpers
* `clear`: Clear the current view.
* `has?`: Tells you whether the given string has ANSI.
* `red`, `green`, `black`, `magenta`, `yellow`, `white`, `blue`, `cyan`
* `jump(str, num)`: Jump the cursor up and then back down `num` lines in the terminal.
* `clear_line`: Clear the current line - Make sure to end it in `\r`
* `reset`: Adds ANSI reset.