Terminal Relative Coordinate System
Project description
TRCS (Terminal relative coordinate system)
TRCS is a very simple Python module that can be used to easily control the terminal cursor with a simple XY coordinate system.
| Function | Usage |
|---|---|
| printc(text, font-color, bg-color) | Prints text with a given font and bg color. Must be in RGB format (rr;gg;bb;) |
| set_color(font, bg) | Sets a color to apply to everything until reset is ran. Must be in RGB format. |
| reset_color | Resets set_color. |
| home | Returns the cursor to 'home', or (0, 0) |
| set_pos(x, y) | Sets the cursor's x and y position. |
| move(x, y) | Moves the cursor relative to it's current position by a given x and y. |
| clear | Clears the screen safely without using system clear. Won't cause flickering. |
| full_clear | Forcefully clears the screen by using system clear. Will cause flickering. |
| clearln | Clears the entire current line the cursor is on. |
And if you need to access the terminals' dimensions, you can do that too
trcs.terminal['height']
trcs.terminal['width']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trcs_absolute-0.0.2.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trcs_absolute-0.0.2.tar.gz.
File metadata
- Download URL: trcs_absolute-0.0.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
515895abcfbf0a1e744df870731e86cc52e50fc398b4af0e64a19a8594eddfc2
|
|
| MD5 |
42b26108785098ad1ba11134de666992
|
|
| BLAKE2b-256 |
c307035b991b5a4434205f96edca6d304693132eb61093b142d2fdfc39c4300f
|
File details
Details for the file trcs_absolute-0.0.2-py3-none-any.whl.
File metadata
- Download URL: trcs_absolute-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06d5efcff9968c1a205d3152cebb86298160cffa89c60ba897bd2db43533b326
|
|
| MD5 |
94e921fe04d426cd45fae8f002938f47
|
|
| BLAKE2b-256 |
53ae2a6dc4d77771cb16b70bdec60fbb0f80a91b052afa94099dfd77e113fed5
|