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 44822/week @ 2019-06-29 46372/week @ 2019-07-06 42563/week @ 2019-07-13 43689/week @ 2019-07-20 47660/week @ 2019-07-27 49506/week @ 2019-08-03 52539/week @ 2019-08-10 50779/week @ 2019-08-17 50533/week @ 2019-08-24 52521/week @ 2019-08-31 54047/week @ 2019-09-07 57484/week @ 2019-09-14 59574/week @ 2019-09-21 57550/week @ 2019-09-28 59644/week @ 2019-10-05

206,752 downloads per month
Used in 1,150 crates (136 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

~230KB