#ansi #ansi-term #ecma-48 #iso-6429 #control-codes #escape-codes

ansi-control-codes

This library contains all ANSI Escape Codes that are defined in the ISO 6429 Standard

6 releases (2 stable)

1.0.1 Jun 9, 2024
0.0.5 Dec 15, 2023
0.0.2 Apr 2, 2023

#275 in Command-line interface

Download history 6/week @ 2024-02-25 1/week @ 2024-03-03 4/week @ 2024-03-10 1/week @ 2024-03-17 7/week @ 2024-03-31 6/week @ 2024-05-19 1/week @ 2024-05-26 15/week @ 2024-06-02 284/week @ 2024-06-09

306 downloads per month

MIT license

450KB
6K SLoC

ANSI Escape Code Library

ANSI escape sequences are a standard for in-band signalling to control cursor location, color, font styling, and other options on video text terminals and terminal emulators.

This library contains all ANSI Escape Codes that are defined in the ISO 6429 Standard. ISO 6429 is the international standard that followed from the efforts of aligning the european ECMA-48 Standard and the american ANSI X3.64 Standard.

With the optional features parser and explain, this library also provides features to parse and explain ANSI escape sequences.

Changelog

See CHANGELOG.md for a change log between versions of this library.

Documentation

Find the latest documentation of this crate at https://docs.rs/crate/ansi-control-codes/latest.

Source Code Repository

The source code for this library is hosted at https://github.com/fzechert/ansi-control-codes.

Development of the next version happens in the develop branch. The master branch contains the latest release of the crate.

Contribution

Contributions are welcome.

Development / Maintenance Status

This crate is under active development and maintenance.

Source Material

The second, and newer, editions of the ECMA-48 Standard are based on the text of the ISO 6429 Standard and are technically identical with it. Since the ISO 6429 Standard is not freely available on the internet, this implementation is based on the publicly available documents of the ECMA-48 Standard. In particular on edition 5 of the ECMA-48 Standard, which is identical to the third edition of ISO-6429.

The ANSI X3.64 Standard has been withdrawn by ANSI in 1994 in favour of the international standard.

You can read more about the history of the standards on Wikipedia: ANSI escape code.

No runtime deps

Features