A Python package for full-screen text user interfaces and ASCII art animations on multiple operating systems. It wraps curses-style console control with higher-level scenes, effects, and widgets.
Overview
Asciimatics helps developers build full-screen text UIs, from interactive forms to ASCII animations, across platforms. It exposes a single cross-platform Python interface for low-level console tasks such as colored text, cursor positioning, keyboard and mouse input, resize handling, and screen scraping.
Higher-level APIs add line drawing, image-to-ASCII conversion for JPEG and GIF, animation effects, and widgets including buttons, text boxes, and radio controls. Typical usage starts with a Screen object for direct drawing, or combines Effects inside Scenes that the Screen plays back.
The authors report successful use on CentOS, Raspbian, Ubuntu, Windows, OSX, and Android where a working curses implementation exists. Installation is via pip for supported Python 3 versions; Windows installs may need pywin32 when not using pip alone.
Documentation and sample scripts demonstrate hello-world demos, banner animations, and TUI layouts. The package is implementation-agnostic across CPython and PyPy2.
Key features
- Cross-platform Screen abstraction
- 256-color and Unicode text output
- Keyboard and mouse input handling
- Console resize detection
- Scene and effect animations
- TUI widgets for forms
- JPEG and GIF to ASCII conversion
- Anti-aliased ASCII line drawing
Use cases
- Terminal-based interactive forms
- ASCII art splash screens
- Console games and demos
- Cross-OS TUI prototypes
- Animated CLI presentations