For questions relating to the asciimatics python package.
Asciimatics is a cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations.
It provides a single cross-platform Python class to do all the low-level console function you could ask for, including:
- Coloured/styled text - including 256 colour terminals and unicode characters (even CJK languages)
- Cursor positioning
- Keyboard input (without blocking or echoing) including unicode support
- Mouse input (terminal permitting)
- Detecting and handling when the console resizes
- Screen scraping
In addition, it provides some simple, high-level APIs to provide more complex features including:
- Anti-aliased ASCII line-drawing
- Image to ASCII conversion - including JPEG and GIF formats
- Many animation effects - e.g. sprites, particle systems, banners, etc.
- Various widgets for text UIs - e.g. buttons, text boxes, radio buttons, etc.
For full details on how to use this package, check out the documentation.