vtclear
Python ANSI VT100 implementation of Erase Screen
installation
uv add vtclear
or
pip install vtclear
usage
from vtclear import clear_screen
clear_screen()
The escape sequence itself is exported too, in case you want to write it somewhere other than stdout:
import sys
from vtclear import CLEAR_SCREEN
sys.stderr.write(CLEAR_SCREEN)
sys.stderr.flush() # no newline in the sequence, so flush by hand
notes
Any VT100 compatible terminal reads the sequence, Windows Terminal included:
it has been the default host on Windows 11 since 22H2. The exception is the
classic console host, conhost.exe, still the default on Windows 10, where
virtual terminal processing stays off unless something turns it on and CPython
does not. There the sequence is printed verbatim instead of clearing, and
enabling it is the caller's job, e.g. through
colorama.just_fix_windows_console().
license
This project is licensed under the MIT License.
Metadata
Release files for vtclear 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| vtclear-1.0.3.tar.gz | 3.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vtclear-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / vtclear-1.0.3.tar.gz
| Download URL | vtclear-1.0.3.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dca24c696a94e1d5f298b596bb688af5ed7c48696c5df6189c3b5f29d8dc3050
|
|
BLAKE2b-256 checksum How to use checksums |
03982dd7424e47ecf9d85b3d0e92edb16572fb96aacd9f8ed4c18b2758c3735e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / vtclear-1.0.3-py3-none-any.whl
| Download URL | vtclear-1.0.3-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1324d18261c3906f7b83298259dd42d475cf4c5568503f89feea05d478d818af
|
|
BLAKE2b-256 checksum How to use checksums |
ff886b944a6784ca7fb4043e5ca9c06e887578eadcf7ca22074c0286fec0a8f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for vtclear 1.0.3
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.