Basic Python Module to control & color & style text in terminal
Project description
ANSI Controller
An Python module to control cursor movement, apply colors, and style text in the terminal using ANSI escape codes.
Features
- Cursor control: move up, down, left, right, or to specific coordinates.
- Text colorization: standard, bright, RGB, and HEX colors.
- Styling: bold, italic, underline, blink, reverse, hidden, strikethrough.
- Customizable progress bars (multi-progress supported).
- Terminal clearing options (partial or full).
- Cross-platform: Windows, Linux, Termux (limited features).
Installation
Windows
pip install --upgrade ANSIController
Linux & Termux
pip3 install --upgrade ANSIController
Quick Start
from ANSIController import Terminal
terminal = Terminal()
# Move cursor up 3 lines
terminal.move_to_up(steps=3)
# Colorize text
text = "[rB]Hello, Red Bold![0]"
print(terminal.colorize(text, "[]"))
# Hide and show cursor
terminal.hide_cursor()
terminal.show_cursor()
Documentation
- Full Documentation – Detailed API reference and usage.
- Showcase – Extended screenshots, demos, and visual examples.
Screenshots
Essential visuals for quick reference:
Notes
- Works only in terminals supporting ANSI escape codes.
- Some Termux features may require root privileges.
- Designed for scripting, automation, and learning.
License
This project is licensed under the MIT License.
Copyright (c) 2023 JoOx01
Contributing & Issues
Found a bug? Have a feature request? Open an issue or submit a PR!
Tests
- Windows 7/10/11: Fully supported
- Linux: Mostly supported
- Termux: Limited features, some require root access
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 ansicontroller-1.1.2.tar.gz.
File metadata
- Download URL: ansicontroller-1.1.2.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b831c72cccc07bdcf8e772279f13ff7e0557e36ee15ba8d614490ecf7cbd6e9d
|
|
| MD5 |
cd33e137380cb87d4366865bc2b3ad2a
|
|
| BLAKE2b-256 |
1c32932b5407a8b28d95622d630ae157d7c576904d19b5fc4354e615da71cfeb
|
File details
Details for the file ansicontroller-1.1.2-py3-none-any.whl.
File metadata
- Download URL: ansicontroller-1.1.2-py3-none-any.whl
- Upload date:
- Size: 20.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
586575c449def915edf28a29f85abf2e11cbed0005e9f7cd9ab68db0583ca156
|
|
| MD5 |
b77ddab0494b18df00554432d9c16952
|
|
| BLAKE2b-256 |
7c6cbd32ec7e85b82aa5a35de1c8c45d5d0241b709c637dd1977c197282a5a4a
|