Skip to main content

App Icon

ANSI Controller

PyPi License: MIT

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


Screenshots

Essential visuals for quick reference:

Progress Bar


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

Metadata

Release files for ANSIController 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ANSIController 1.1.2
File Size Uploaded Provenance Actions
ansicontroller-1.1.2.tar.gz 18.2 kB Without provenance Details for ansicontroller-1.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ANSIController 1.1.2
File Interpreter ABI Platform Actions
ansicontroller-1.1.2-py3-none-any.whl Python 3 none any Details for ansicontroller-1.1.2-py3-none-any.whl

Total release size: 39.1 kB

Release files / ansicontroller-1.1.2.tar.gz

Download URL ansicontroller-1.1.2.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b831c72cccc07bdcf8e772279f13ff7e0557e36ee15ba8d614490ecf7cbd6e9d
BLAKE2b-256 checksum
How to use checksums
1c32932b5407a8b28d95622d630ae157d7c576904d19b5fc4354e615da71cfeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / ansicontroller-1.1.2-py3-none-any.whl

Download URL ansicontroller-1.1.2-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
586575c449def915edf28a29f85abf2e11cbed0005e9f7cd9ab68db0583ca156
BLAKE2b-256 checksum
How to use checksums
7c6cbd32ec7e85b82aa5a35de1c8c45d5d0241b709c637dd1977c197282a5a4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for ANSIController 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page