Get TerminalG building and running in 5 minutes.
- Rust 1.93.0 - https://rustup.rs/
- macOS 10.15+, Linux (glibc 2.31+), or Windows 10+
- Git
macOS:
# Nothing additional required - everything is built-inLinux (Ubuntu/Debian):
sudo apt-get install -y build-essential pkg-config libssl-devLinux (Fedora/RHEL):
sudo dnf install -y gcc pkg-config openssl-develWindows:
- Visual Studio Build Tools or Visual Studio Community
- Windows SDK (includes ConPTY headers)
cd /Users/randlee/Documents/github
git clone <url> terminalg # if not already cloned
cd terminalgrustc --version # Should be 1.93.0
cargo --versioncargo buildThis will:
- Download all dependencies
- Compile the project
- Create binary at
target/debug/terminalg
cargo runThis will:
- Initialize settings at
~/.config/terminalg/settings.json - Create default configuration
- Print debug output
cat ~/.config/terminalg/settings.jsonExpected output:
{
"terminal": {
"font_size": 12,
"font_family": "Menlo",
"padding": { "horizontal": 8, "vertical": 8 },
"enable_url_recognition": true,
"scrollback_lines": 10000,
"shell": null
},
"ui": {
"theme": "dark",
"terminal_width_ratio": 0.5,
"show_preview": true,
"autosave_interval": 0
}
}# Build debug version
cargo build
# Build release (optimized, smaller binary)
cargo build --release
# Run with logging
RUST_LOG=debug cargo run
# Run tests
cargo test
# Check for issues without building
cargo check
# Format code
cargo fmt
# Lint code
cargo clippy
# Clean build artifacts
cargo cleanterminalg/
├── src/
│ ├── main.rs # Entry point
│ ├── settings/ # Settings system
│ │ ├── mod.rs
│ │ ├── terminal.rs
│ │ └── ui.rs
│ ├── theme/ # Theme definitions
│ │ └── mod.rs
│ ├── terminal/ # Terminal component (Phase 2)
│ │ └── mod.rs
│ ├── ui/ # UI layout (Phase 3)
│ │ └── mod.rs
│ └── viewer/ # Markdown/image viewers (Phase 3)
│ └── mod.rs
├── docs/
│ ├── QUICK-START.md # This file
│ ├── IMPLEMENTATION-PLAN.md # Detailed roadmap
│ ├── settings-architecture.md
│ └── CLAUDE.md
├── Cargo.toml # Dependencies
└── src/main.rs
PTY library not found. Check platform-specific section above.
Make sure ~/.config/ directory exists:
mkdir -p ~/.configSet log level explicitly:
RUST_LOG=terminalg=debug cargo run- Read
docs/IMPLEMENTATION-PLAN.mdfor detailed roadmap - Check
src/main.rsfor TODOs - Start Phase 1 implementation
- Update progress in
CLAUDE.md
- GPUI Examples: https://github.com/zed-industries/zed/tree/main/crates/gpui/examples
- Zed Terminal Source: https://github.com/zed-industries/zed/tree/main/crates/terminal/src
- Rust Book: https://doc.rust-lang.org/book/
- Cargo Guide: https://doc.rust-lang.org/cargo/
- Check logs:
RUST_LOG=debug cargo run - Read error messages carefully (Rust compiler is very helpful)
- Consult platform-specific setup section above
- Check existing issues/PRs in the repo