39 releases

0.5.2 Mar 28, 2019
0.5.1 Feb 23, 2018
0.4.6 Jun 23, 2017
0.4.5 Feb 7, 2017
0.1.1 Dec 29, 2014

#9 in Command-line interface

Download history 22311/week @ 2018-12-20 21429/week @ 2018-12-27 27831/week @ 2019-01-03 36183/week @ 2019-01-10 42801/week @ 2019-01-17 28551/week @ 2019-01-24 32986/week @ 2019-01-31 39205/week @ 2019-02-07 35034/week @ 2019-02-14 35394/week @ 2019-02-21 37679/week @ 2019-02-28 40491/week @ 2019-03-07 39675/week @ 2019-03-14 33287/week @ 2019-03-21 39170/week @ 2019-03-28

153,623 downloads per month
Used in 975 crates (133 directly)

MIT/Apache

116KB
2K SLoC

term

A Rust library for terminfo parsing and terminal colors.

Build Status Build status

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]

term = "*"

and this to your crate root:

extern crate term;

Packaging and Distributing

For all terminals but windows consoles, this library depends on a non-hashed (for now) terminfo database being present. For example, on Debian derivitives, you should depend on ncurses-term; on Arch Linux, you depend on ncurses; and on MinGW, you should depend on mingw32-terminfo.

Unfortunately, if you're using a non-windows console on Windows (e.g. MinGW, Cygwin, Git Bash), you'll need to set the TERMINFO environment variable to point to the directory containing the terminfo database.

Dependencies

~1MB