mozterm
raw JSON → 1.0.0 verified Mon Apr 27 auth: no python maintenance
Terminal abstractions built around the blessings module, used in Mozilla's testing and automation tools. Current version 1.0.0, low maintenance cadence.
pip install mozterm Common errors
error ImportError: No module named 'mozterm' ↓
cause mozterm not installed in the current environment.
fix
Run: pip install mozterm
error AttributeError: module 'mozterm' has no attribute 'Terminal' ↓
cause Incorrect import statement, e.g., import mozterm then mozterm.Terminal.
fix
Use: from mozterm import Terminal
Warnings
gotcha mozterm wraps the blessings library. Do not import both; use mozterm for consistent behavior across Mozilla tools. ↓
fix Always use from mozterm import Terminal instead of from blessings import Terminal.
deprecated The package is in maintenance mode with no active development. Consider using blessings directly or other modern terminal libraries if you need new features. ↓
fix Evaluate if you need mozterm's specific abstractions; otherwise use blessings or rich.
Imports
- Terminal
from mozterm import Terminal
Quickstart
from mozterm import Terminal
term = Terminal()
print(term.red('Hello, world!'))