• Stars
    star
    168
  • Rank 217,674 (Top 5 %)
  • Language
    Ruby
  • License
    Apache License 2.0
  • Created almost 15 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ruby library that colors strings using ANSI escape sequences

Term::ANSIColor - ANSI escape sequences in Ruby

Description

This library can be used to color/decolor strings using ANSI escape sequences.

Installation

Use rubygems to install the gem:

# gem install term-ansicolor

Download

The homepage of this library is located at

Examples

The following executables are provided with Term::ANSIColor:

  • cdiff: colors a diff patch
  • decolor: decolors any text file that was colored with ANSI escape sequences
  • colortab: Displays a table of the 256 terminal colors with their indices and nearest html equivalents.
  • term_display: displays a ppm3 or ppm6 image file in the terminal. If the netpbm programs are installed it can handle a lot of other image file formats.
  • term_mandel: displays the mandelbrot set in the terminal

Additionally the file examples/example.rb in the source/gem-distribution shows how this library can be used.

Author

Florian Frank mailto:[email protected]

License

Apache License, Version 2.0 – See the COPYING file in the source archive.

More Repositories

1

json

JSON implementation for Ruby
Ruby
665
star
2

amatch

Approximate String Matching library
C
364
star
3

file-tail

File::Tail for Ruby
Ruby
158
star
4

permutation

Permutation library in Ruby
Ruby
29
star
5

more_math

Library that provides more mathematics.
Ruby
27
star
6

neuro

Neural Network Extension for Ruby
Ruby
21
star
7

tins

This Is Not Spruz
Ruby
20
star
8

protocol

Method Protocols for Ruby Classes
Ruby
15
star
9

spruz

All the stuff that isn't good/big enough for a real library.
Ruby
15
star
10

bullshit

The Bullshit Benchmarking Library provides the means to measure, analyse, compare, and report the execution time of ruby code. It also provides statistical tests and values computed from the measured data.
Ruby
12
star
11

lazylist

Implementation of lazy lists for Ruby
Ruby
9
star
12

active_record_mutex

Implementation of a Mutex for Active Record
Ruby
5
star
13

dslkit

Kit for building DSLs in Ruby
Ruby
4
star
14

cpu

Ruby library to read Model Specific Registers, e. g. core temperature, via the msr linux kernel module
Ruby
3
star
15

vim-config

My vim configuration
Vim Script
3
star
16

utils

Ruby
3
star
17

gem_hadar

Library providing a bunch of rake tasks for handling gems
Ruby
3
star
18

mize

Memoize methods/functions in Ruby
Ruby
3
star
19

blinkenlights

Control the Blinkenlights on your keyboard from Ruby
Ruby
2
star
20

jsturtle

Turtle Graphics with Javascript and Canvas
JavaScript
1
star
21

wirecard_checkout_page

Ruby
1
star
22

complex_config

configuration library using YAML
Ruby
1
star
23

caddy-stats

Go
1
star
24

docker-tinyproxy

Makefile
1
star
25

hackmac

Some ruby tools for working with a Hackintosh, which also might be (partially) useful an a regular Mac.
Ruby
1
star
26

ctapi

Ruby extension for Chipcard Cardterminal-API (CTAPI)
Ruby
1
star