lanimret
(terminal
backwards) is a simple, clear module giving full terminal control on *nix systems. The detested curses
library will never have to show its face in your code again.
Dependencies
lanimret
only uses modules from CPython
's standard library.
Installation
git clone https://github.com/oliversandli/lanimret.git
Place the lanimret.py
file in your project.
Wiki
Examples
from lanimret import Color as co
# print blue text, then blue text with a red background, then reset colors
print(f"{co.fg.blue}This is blue text! {co.bg.red}And with a red background.{co.reset}")
import time
from lanimret import Cursor
# a simple progress indicator
cur = Cursor()
for i in range(101):
print(f"{i}%", end="")
time.sleep(0.05)
cur.clear_line(2)