40 releases

✓ Uses Rust 2018 edition

0.6.1 Aug 5, 2019
0.6.0 Jul 26, 2019
0.5.2 Mar 28, 2019
0.5.1 Feb 23, 2018
0.1.1 Dec 29, 2014

#9 in Command-line interface

Download history 60935/week @ 2019-10-13 56218/week @ 2019-10-20 60610/week @ 2019-10-27 63772/week @ 2019-11-03 63198/week @ 2019-11-10 64658/week @ 2019-11-17 59689/week @ 2019-11-24 64396/week @ 2019-12-01 64324/week @ 2019-12-08 65516/week @ 2019-12-15 37176/week @ 2019-12-22 48448/week @ 2019-12-29 75345/week @ 2020-01-05 69375/week @ 2020-01-12 69244/week @ 2020-01-19

262,721 downloads per month
Used in 1,336 crates (145 directly)

MIT/Apache

110KB
2.5K 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

~200KB