notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Port details
rubygem-hansi Der ANSI Hansi - create colorized console output
0.2.1 develnew! on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2026-05-21 15:06:17
Last Update: 2026-05-21 14:45:44
Commit Hash: bde0d02
Also Listed In: rubygems
License: MIT
WWW:
https://github.com/rkh/hansi
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (3 items)
Collapse this list.
  1. /usr/local/share/licenses/rubygem-hansi-0.2.1/catalog.mk
  2. /usr/local/share/licenses/rubygem-hansi-0.2.1/LICENSE
  3. /usr/local/share/licenses/rubygem-hansi-0.2.1/MIT
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • rubygem-hansi>0:devel/rubygem-hansi
To install the port:
cd /usr/ports/devel/rubygem-hansi/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/rubygem-hansi
  • pkg install rubygem-hansi
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: rubygem-hansi
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1779222886 SHA256 (rubygem/hansi-0.2.1.gem) = 7e27dfd729f1692a3a7690fc0ef3af9d5e3cfc0285bb135cae7e56180e4805db SIZE (rubygem/hansi-0.2.1.gem) = 80384

No package information for this port in our database
Sometimes this happens. Not all ports have packages. This is doubly so for new ports, like this one.
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. ruby34 : lang/ruby34
  2. gem : devel/ruby-gems
Runtime dependencies:
  1. ruby34 : lang/ruby34
  2. gem : devel/ruby-gems
Patch dependencies:
  1. ruby34 : lang/ruby34
  2. gem : devel/ruby-gems
Extract dependencies:
  1. ruby34 : lang/ruby34
This port is required by:
for Run
  1. devel/rubygem-mustermann-contrib

Configuration Options:
No options to configure
Options name:
devel_rubygem-hansi
USES:
gem
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://rubygems.org/downloads/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.2.1
21 May 2026 14:45:44
commit hash: bde0d028b610b0e5255300a646940387de8ff4c8commit hash: bde0d028b610b0e5255300a646940387de8ff4c8commit hash: bde0d028b610b0e5255300a646940387de8ff4c8commit hash: bde0d028b610b0e5255300a646940387de8ff4c8 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/rubygem-hansi: Add rubygem-hansi 0.2.1

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.
(Only the first 15 lines of the commit message are shown above View all of this commit message)

Number of commits found: 1