Skip to main content

mintterm

mintterm

A block-based terminal for Linux, built with pygame. It runs real bash underneath, so every command you know keeps working. Each command and its output become a card, common commands show tables and bars instead of walls of text, and risky commands ask before they touch your files.

Install

Linux Mint and Ubuntu:

pip install mintterm
mintterm

Windows 11, through WSL:

wsl --install

Open Ubuntu from the Start menu, then run pip install mintterm and mintterm. Windows 11 shows the window through WSLg with no extra setup. Windows 10 needs an X server such as VcXsrv and is not supported in v0.2.

Commands that look different

These run as real commands. mintterm adds flags behind the scenes so the output can be parsed, and you see the output as a table or bars.

You type You get
ls, ls ~/Downloads Table with size, date, permissions, owner. ▸ folders, * programs, → links
ls --raw Plain ls output
df Drives with usage bars. Bars turn red above 85%
du, du ~ Biggest folders first, with a share bar
ps Top 25 processes by CPU, with bars
free RAM and swap bars
ip Network interfaces with state and addresses
ss Listening ports with the program that owns each one
git status Branch, sync state, and a table of changes
git log Last 20 commits as a table
grep pattern file Matches as a table with file and line
find ... Results as a table, folders highlighted
apt list --upgradable Packages with new versions
systemctl --failed Failed services in red
cat file Numbered lines

Everything else runs exactly as typed, with its output in a card. Cards work for every command: fold, pin, copy, and exit codes.

Built-in features

  • Trash and undo. rm moves files into the mintterm trash instead of deleting them. undo brings them back. mv is recorded too. rm --really deletes permanently.
  • Safety preview. rm -rf, sudo rm, dd, mkfs, and chmod -R list what would change and wait for y.
  • ? helper. ? find big files, ? update my system, or ? explain tar. It suggests commands but never runs them.
  • Tab completion. Completes file and folder names, and lists options when several match.
  • History search. Ctrl+R, type part of an old command, press Enter.
  • Cards. Click a prompt line to fold a card. Ctrl+P pins a card to the top. Ctrl+Shift+C copies its output (needs xclip or wl-copy).
  • Background commands. The window stays responsive while a command runs. Ctrl+C stops it.
  • Notifications. If a command takes longer than 10 seconds and the window is in the background, you get a desktop notification (uses notify-send, included in Mint).
  • Prompt segments and profiles. Show or hide time, user, host, folder, git branch, Python venv, and exit code. Server profile shows a red prompt so production never looks like your sandbox.

Keys

Key Action
Enter Run the command
Up / Down Command history, or move through search results
Tab Complete a file or folder name
Ctrl+R Search history
Ctrl+P Pin or unpin the selected card
Ctrl+Shift+C Copy the selected card's output
Ctrl+L or clear Clear the screen
Ctrl+U Clear the input line
Ctrl+T Switch to the next theme
Ctrl+C Stop a running command, or cancel a confirmation
Mouse wheel Scroll
Esc Quit (or leave search)

Settings

Type these inside mintterm. Settings save to ~/.config/mintterm/config.json.

set theme sunset              mint-dark, mint-light, sunset
set profile Server            Dev, Server, Minimal
set font 18                   10 to 28
set segments user,host,path   time, user, host, path, git, venv, exit
set notify 10                 seconds before a desktop alert (0 = always)
set                           show current settings

Command-line options: mintterm --theme mint-light (for this run only), mintterm --version, mintterm --help.

Limitations in v0.2

  • Full-screen programs (vim, nano, top, htop) do not run inside mintterm. Use ps and free for the same information.
  • sudo asks for a password in the terminal that launched mintterm, not in the window. Run sudo -v in your normal terminal first, then sudo commands in mintterm work for about 15 minutes.
  • Output appears when a command finishes, not line by line.
  • Only the commands listed above get tables. Others are shown as plain output in cards.
  • Plugins, an SSH manager, widgets and session sharing are planned for later versions.

Development

python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest

The parsers, safety checks, trash, and helper have no pygame dependency and are fully tested. The window code is tested by running it against a display.

Publishing to PyPI

  1. Create an account at pypi.org and an API token under Account settings.
  2. Update authors and the URLs in pyproject.toml, and bump version for each release.
  3. Build and check:
python -m build
twine check dist/*
  1. Test on TestPyPI first:
twine upload --repository testpypi dist/*
pip install -i https://test.pypi.org/simple/ mintterm
  1. Upload to the real index:
twine upload dist/*

Username: __token__. Password: your pypi-... token.

License

MIT. See LICENSE.

Metadata

Release files for mintterm 0.2.0

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

Source distribution (sdist)

Source distribution for mintterm 0.2.0
File Size Uploaded Provenance Actions
mintterm-0.2.0.tar.gz 32.5 kB Without provenance Details for mintterm-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mintterm 0.2.0
File Interpreter ABI Platform Actions
mintterm-0.2.0-py3-none-any.whl Python 3 none any Details for mintterm-0.2.0-py3-none-any.whl

Total release size: 62.1 kB

Release files / mintterm-0.2.0.tar.gz

Download URL mintterm-0.2.0.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f9b5d2328fa685beb5140649a415c4fc92b74d9d6324ad708d3312046a3a815d
BLAKE2b-256 checksum
How to use checksums
9c4d7b5f0793bc5d52b40904e59c4d317dac6b90c98c45c8e73f8ccc1f4e01d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / mintterm-0.2.0-py3-none-any.whl

Download URL mintterm-0.2.0-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8056058003c6dc1c5c10d07e29b2ee75424c4617ae327efb1e45bda16282740
BLAKE2b-256 checksum
How to use checksums
9db0150e795e2d8875675f71a7219136349ede2e789df2b7ff0fac7d37e87dc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for mintterm 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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