Minimal ANSI terminal colour codes, for Ruby
woad provides the smallest useful set of fixed ANSI SGR colour sequences for library authors. It is not a console or TUI framework.
woad.Ruby is the Ruby implementation. It supports Ruby 2.0+.
It has no dependencies on any other non-standard library.
Install via gem as in:
gem install woad
or add it to your Gemfile.
Use via require, as in:
require 'woad'
puts "#{Woad::FG_GREEN}ok#{Woad::RESET}"woad.Ruby ships SGR string constants (RESET, FG_*, BG_*, including bright variants). TTY/stream gating and Windows virtual-terminal opt-in are not implemented yet.
Examples are provided in the examples directory, along with a markdown description for each. A detailed list TOC of them is provided in EXAMPLES.md.
Defect reports, feature requests, and pull requests are welcome on https://github.com/synesissoftware/woad.Ruby.
Libraries upon which woad.Ruby depends:
- <none>;
Projects that depend on woad.Ruby:
- <none>;
- <none>;
- woad (C);
- woad.Python;
- woad.Rust;
woad.Ruby is released under the 3-clause BSD license. See LICENSE for details.