TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/badlogic/pi-mono/llms.txt
Use this file to discover all available pages before exploring further.
@mariozechner/pi-tui package provides a minimal terminal UI framework with differential rendering for building interactive CLI applications.
Key Features
Differential Rendering
Three-strategy rendering that only updates what changed
Component-Based
Simple Component interface with render() method
Synchronized Output
CSI 2026 for atomic, flicker-free updates
Built-in Components
Text, Editor, Markdown, SelectList, Image, and more
Installation
Quick Start
Core Concepts
Component Interface
All components implement:Differential Rendering
Three rendering strategies:- First Render - Output all lines without clearing
- Width/Viewport Change - Clear and full re-render
- Normal Update - Only render changed lines
Overlays
Render components on top of existing content:Built-in Components
- Container - Groups child components
- Box - Container with padding and background
- Text - Multi-line text with word wrapping
- TruncatedText - Single-line truncated text
- Input - Single-line text input
- Editor - Multi-line editor with autocomplete
- Markdown - Rendered markdown with syntax highlighting
- Loader - Animated loading spinner
- SelectList - Interactive selection list
- SettingsList - Settings panel with value cycling
- Image - Inline images (Kitty/iTerm2)
- Spacer - Vertical spacing
Next Steps
Components
Explore built-in components
API Reference
Complete TUI API documentation