devel/rubygem-hansi 0.2.1 FreeBSD
Der ANSI Hansi - create colorized console output
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, rubygems
- Package size
- 74.5 KiB, 142.0 KiB installed
Description
Welcome to The ANSI Hansi. This is your Hipster ANSI color library.
It allows you to produce colorized console output.
Many ANSI color libraries are already out there. However, this library tackles a few issues most of them have:
- It supports 8 color, 16 color, 88 color, 256 color and 24 bit (True Color) mode.
- It transparently converts colors between modes without you having to worry about this. It uses the YUV distance (rather than the RGB distance) to closer match how our brain perceives color similarity.
- It supports proper color nesting.
- It can automatically detect how many colors the current terminal supports.
- It does not enforce a DSL to be used (in fact, it does not include a DSL, but it makes it really easy to build your own DSL).
- Makes it easy to define string templates for highlighting, but doesn't force you to use them.
- It supports themes, but doesn't force you to use them. Themes make semantic coloring easier.
- It supports converting ANSI colors to CSS rules. It does not support parsing an ANSI colored string into HTML, this would be outside the scope of this library.
- It has zero dependencies and does not include a native extension.
- It does not monkey patch anything.
Install
Binary package:
pkg install rubygem-hansi
From the ports tree:
cd /usr/ports/devel/rubygem-hansi/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= rubygem-hansi>0:devel/rubygem-hansi
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.2.1 | 0.2.1 | - | - | 0.2.1 |
| FreeBSD:14:quarterly | 0.2.1 | 0.2.1 | n/a | - | 0.2.1 |
| FreeBSD:15:latest | 0.2.1 | 0.2.1 | n/a | - | - |
| FreeBSD:15:quarterly | 0.2.1 | 0.2.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.2.1 | 0.2.1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 6
Run dependencies 6
Required by 1
Configuration
No options to configure.
- USES
- gem
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| rubygem/hansi-0.2.1.gem | 80384 | 7e27dfd729f1692a3a7690fc0ef3af9d5e3cfc0285bb135cae7e56180e4805db |
Master sites 1
- RG
Commit history 0
No commits in the history this site was built from.