Skip to content
This repository has been archived by the owner on Oct 15, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (19 loc) · 608 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 608 Bytes

Notice:

I'm not really developing this anymore. Recommend using https://rich.readthedocs.io/en/stable/console.html#status as an alternative.

cLastLine

Module to easily allow rewriting the last line in the terminal.

Example

from clastline import cLastLine

with cLastLine() as c:
    # write testing to the last line
    c.write("testing")

    # write testing again to the last line (overwrites previous)
    c.write("testing again")

    # overwrite the first characters of the line (though leave rest)
    c.write("ouch!", clearBeforeWrite=False)

Install

pip install clastline