41 releases

0.7.0 Jan 12, 2021
0.6.1 Aug 5, 2019
0.6.0 Jul 26, 2019
0.5.2 Mar 28, 2019
0.1.1 Dec 29, 2014

#270 in Command-line interface

Download history 220152/week @ 2023-12-17 106231/week @ 2023-12-24 168683/week @ 2023-12-31 229628/week @ 2024-01-07 233219/week @ 2024-01-14 250433/week @ 2024-01-21 252264/week @ 2024-01-28 260595/week @ 2024-02-04 263504/week @ 2024-02-11 237887/week @ 2024-02-18 261545/week @ 2024-02-25 252287/week @ 2024-03-03 251476/week @ 2024-03-10 266065/week @ 2024-03-17 269519/week @ 2024-03-24 257668/week @ 2024-03-31

1,060,664 downloads per month
Used in fewer than 182 crates

MIT/Apache

110KB
2.5K SLoC

term

A Rust library for terminfo parsing and terminal colors.

CircleCI AppVeyor

Documentation

MSRV

1.36 - the minimum version testable on circleci.

Usage

Add this to your Cargo.toml:

[dependencies]

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

~52–530KB