Terminal control sequence parser
Project description
dec_ansi_parser
Pure-python terminal control sequence parser, based on Paul Williams' DEC-compatible parser.
Changes from Williams' parser:
- Handles subparameters
- Allows UTF-8 encoded strings (treated as normal text)
- Ignores the backslash (0x5C) in a 7-bit string terminator when exiting an OSC or DCS control string
Any invalid UTF-8 sequences are parsed as individual raw bytes.
Installation
$ pip install dec_ansi_parser
Usage
- TODO
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
dec_ansi_parser
was created by yut23. It is licensed under the terms of the BSD 3-Clause license.
Credits
dec_ansi_parser
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dec_ansi_parser-0.1.0.tar.gz
(14.4 kB
view hashes)
Built Distribution
Close
Hashes for dec_ansi_parser-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1af24ec5610b2d8451030ceb53eb75f567ccf5a54c2f2345db63753454383f0 |
|
MD5 | c59292282edf3750faf916ff502201a3 |
|
BLAKE2b-256 | a0db611d6f1ef85183b88f23f83ced6e677dcd42e47db507510f2dcaff19d71b |