CConsole (Cool Console Prompt)
A Windows console customization library for Python. Enable VT100 sequences, customize cursor, disable mouse interaction, lock resize, hide scrollbars, and apply blur effects.
Installation
pip install CConsole
Or install from source:
pip install -e .
Quick Start
from CConsole import Console
console = Console()
console.init()
Usage
Basic Initialization
from CConsole import Console
console = Console()
console.init()
Method Chaining for Features
from CConsole import Console
console = Console()
console.init().enable_vt().set_thin_cursor().disable_mouse_interaction().lock_console_resize().hide_console_scrollbar()
Individual Feature Control
console = Console()
console.init()
console.enable_vt()
console.set_thin_cursor()
console.enable_blur_behind()
console.set_title("My App")
Available Methods
| Method | Description |
|---|---|
init() |
Initialize console handles |
enable_vt() |
Enable VT100 terminal processing |
disable_vt() |
Disable VT100 terminal processing |
set_thin_cursor(size, visible) |
Set thin cursor |
set_block_cursor() |
Set block cursor |
hide_cursor() |
Hide cursor |
show_cursor() |
Show cursor |
disable_mouse_interaction() |
Disable mouse input |
enable_mouse_interaction() |
Enable mouse input |
lock_console_resize() |
Lock window resize |
unlock_console_resize() |
Unlock window resize |
hide_console_scrollbar() |
Hide scrollbar |
enable_blur_behind(gradient_color) |
Enable blur effect |
disable_blur_behind() |
Disable blur effect |
set_title(title) |
Set console title |
clear() |
Clear console |
reset() |
Reset console to defaults |
set_size(width, height) |
Set buffer size |
move_cursor(x, y) |
Move cursor position |
get_hwnd() |
Get window handle |
get_output_handle() |
Get output handle |
get_input_handle() |
Get input handle |
Examples
Custom blur effect:
from CConsole import Console
console = Console()
console.init(blur_behind=False)
console.enable_blur_behind(gradient_color=0x80000000)
Reset everything:
console.reset()
Access raw structures:
from CConsole import COORD, CONSOLE_SCREEN_BUFFER_INFO
Requirements
- Windows OS
- Python >= 3.7
License
MIT
Metadata
Release files for CConsole 1.0.0
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 | Actions |
|---|---|---|---|---|
| cconsole-1.0.0.tar.gz | 5.8 kB | Without provenance | Details for cconsole-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cconsole-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for cconsole-1.0.0-py3-none-any.whl |
Total release size: 11.7 kB
Release files / cconsole-1.0.0.tar.gz
| Download URL | cconsole-1.0.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
513751c8a9f472815f6d63f160a03040fe97a6045d8e79fe48f123f294f53409
|
|
BLAKE2b-256 checksum How to use checksums |
23ad586d144d05205574a7dcf8486475abfb9b2aeed8169ee355d64b3c14246e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Release files / cconsole-1.0.0-py3-none-any.whl
| Download URL | cconsole-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d1079ecd94e5953aa9a827e5b55e74fd69e519e6179848ec06f31850fd0e4ed
|
|
BLAKE2b-256 checksum How to use checksums |
894c15b272952cef7c9ba76d851a27e918691968d8f5191975655e221608ac65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.0
|
Security for CConsole 1.0.0
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.