ANSI > UTF-8 Conversion
Project description
ANSI Art Converter
A tool to convert original ANSI art files for viewing in a modern terminal.
[!IMPORTANT] This is not an AI-generated project! I wrote this as a labor of love. I test it extensively against original artwork.
Demos
I made some videos of demo conversions that are on youtube:
- Demo ANSI Conversion | g80-impure: https://www.youtube.com/watch?v=ZBk6FdzMkck
- Demo ANSI conversion | goto80-goto20: https://www.youtube.com/watch?v=Phbriy19yCY
Installation
You can install the ansi-art-convert package via pip:
pip install ansi-art-convert
[!IMPORTANT] As a prerequisite, you will need to install the
ANSI megafonton your system via your regular font installer, and ensure that your terminal emulator is configured to use it.
Alternatively, you can install it via a one-liner (you will still need to configure your terminal to use it):
install commands:
# osx
curl -sOL --output-dir ~/Library/Fonts/ https://github.com/tmck-code/ansi-megafont/releases/download/v0.1.1/ANSICombined.ttf \
&& fc-cache -f ~/Library/Fonts/ \
&& fc-list | grep "ANSICombined"
# linux
curl -sOL --output-dir ~/.fonts/ https://github.com/tmck-code/ansi-megafont/releases/download/v0.1.1/ANSICombined.ttf \
&& fc-cache -f ~/.fonts/ \
&& fc-list | grep "ANSICombined"
Usage
usage: ansi-art-convert [-h] --fpath FPATH [--encoding ENCODING] [--sauce-only] [--verbose] [--ice-colours] [--font-name FONT_NAME] [--width WIDTH]
options:
-h, --help show this help message and exit
--fpath, -f FPATH Path to the ANSI file to render.
--encoding, -e ENCODING
Specify the file encoding (cp437, iso-8859-1, ascii, utf-8) if the auto-detection was incorrect.
--sauce-only, -s Only output the SAUCE record information as JSON and exit.
--verbose, -v Enable verbose debug output.
--ice-colours Force enabling ICE colours (non-blinking background).
--font-name FONT_NAME
Specify the font name to determine glyph offset (overrides SAUCE font).
--width, -w WIDTH Specify the output width (overrides SAUCE tinfo1).
Documentation
Resources
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansi_art_convert-0.2.0.tar.gz.
File metadata
- Download URL: ansi_art_convert-0.2.0.tar.gz
- Upload date:
- Size: 23.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a43853270f0162bcafa0040a4b30cf7ebec27a253e8a0dc1717e069b2a43d89
|
|
| MD5 |
2bd9ec3744b753e3e1e41790ead83d0e
|
|
| BLAKE2b-256 |
a7afe50b3db5b7c021a9380a35f0036a31ab04a716393c279837c2e84d3cfa12
|
File details
Details for the file ansi_art_convert-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ansi_art_convert-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6859f0941d7317689f35b685fa8129a834b3a5315a3065aa3bba75ca4641268
|
|
| MD5 |
6cbb8275272fd83b4436d827aa00940b
|
|
| BLAKE2b-256 |
a839954e8d52eef57cd16a96de7646b533b06b25249e31242d0311565f8e0682
|