Skip to main content

term-paint

Description

This is a CLI tool for drawing images in your terminal with keyboard controls. For wide compatibility, only 8 terminal colors are used - an image that uses different colors will round them to the nearest supported color when loaded and saved.

Usage

  • E to toggle drawing mode (X in infobar means drawing is disabled; % in infobar means it is enabled)
  • W,A,S,D to move around the image
  • 1...7 for switching colors (indicated on the left of the infobar)
  • 0 to switch to black (default fill color)
  • B to show a view of the image in your default image viewer
  • X to save the image under the filename provided (nameless files are saved as unnamed.png)
  • Q to exit the program without saving any changes

CLI options

  • -n NAME/--filename NAME: provides a filename to save or load the image
  • -l/--load: try to load the specified image (fails if the name was not provided or the image doesn't exist)
  • -x/--width: specify the width in pixels when creating a new image (default 88)
  • -y/--height: specify the height in pixels when creating a new image (default 31 for 88x31 images)
  • -p/--pos: display cursor position in infobar (recommended)
  • -c/--change-color: tries to use the brighter versions of terminal colors (visible colors are dependent on your theme)

Installation

From PyPI:

  • pip install term-paint or pipx install term-paint or uv tool install term-paint
  • term-paint [OPTIONS]

From wheel files:

  • Download the wheel files from the release and place them into a new directory
  • uv install .
  • term-paint [OPTIONS]

From the repo:

  • git clone https://github.com/strawberry-p/term-paint.git
  • cd term-paint
  • py paint.py [OPTIONS]

Metadata

Release files for term-paint 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for term-paint 1.0.2
File Size Uploaded
term_paint-1.0.2.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for term-paint 1.0.2
File Interpreter ABI Platform
term_paint-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / term_paint-1.0.2.tar.gz

Download URL term_paint-1.0.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
87f7d748eecc533ecf234e810bb316f12bb52d3b6c5dc40fd6aae46e87d04115
BLAKE2b-256 checksum
How to use checksums
bbba90c4354f6b33af995211c95ccf0c9b21ba9463d65f40c9de880b626bc9cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / term_paint-1.0.2-py3-none-any.whl

Download URL term_paint-1.0.2-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1187f6e5c52962cf85962e75a47fc8eb4e256b55cd98b0bc41fbb215e82aba9e
BLAKE2b-256 checksum
How to use checksums
ac1906d4d8e538d0d7b78c8cad118608c06ce9adbaa2c36aeb9faafdf7140dd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page