Skip to main content

ANSI > UTF-8 Conversion

Project description

ANSI > UTF-8 Conversion


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 megafont on 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.0/TopazPlusPlus.ttf \
  && fc-cache -f ~/Library/Fonts/ \
  && fc-list | grep "TopazPlusPlus"

# linux
curl -sOL --output-dir ~/.fonts/ https://github.com/tmck-code/ansi-megafont/releases/download/v0.1.0/TopazPlusPlus.ttf \
  && fc-cache -f ~/.fonts/ \
  && fc-list | grep "TopazPlusPlus"

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansi_art_convert-0.1.1.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansi_art_convert-0.1.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file ansi_art_convert-0.1.1.tar.gz.

File metadata

  • Download URL: ansi_art_convert-0.1.1.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ansi_art_convert-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a51fc56103fbdf625673d225b468bd656985afc1e4da4422c86e0f38aa6478f9
MD5 6a93f9e5c555f497a4cbacba6b3404e3
BLAKE2b-256 0a340b2384aec2527bb0788b273f97b7cf5d32a864af8511becbc3ea7ab05b0f

See more details on using hashes here.

File details

Details for the file ansi_art_convert-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ansi_art_convert-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c617f7cf6d344c1f1e13e43862c15f5ff37267c9659f9e76706c702e2c0bdd10
MD5 4097a3baa625b3b6178db28ae829a8de
BLAKE2b-256 8a3c4584ffe34b6aea174ec822327d7d5d602596014360990c7ce0b7f3deec8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page