What Alacritty Does
- GPU rendering — OpenGL/Metal for text rendering
- Cross-platform — macOS, Linux, Windows, FreeBSD
- TOML config — everything via
alacritty.toml - Vi mode — navigate and select text in terminal
- Search — incremental regex search
- Hints — clickable URLs and custom patterns
- Live config reload — edit config, terminal updates instantly
- Scrollback — configurable buffer size
- True color — 24-bit color support
- Unicode — full Unicode and emoji rendering
Architecture
Rust binary using glutin/winit for windowing and crossfont for font rasterization. Rendering pipeline: parse ANSI escape codes → update grid state → render via OpenGL. Zero-copy where possible for maximum throughput.
Self-Hosting
Terminal application — install and run.
Key Features
- Fastest text rendering
- GPU-accelerated
- TOML configuration
- Vi mode navigation
- Live config reload
- True color and font ligatures
- Regex search
- URL hints
- Cross-platform
- Minimal by design
Comparison
| Terminal | GPU | Tabs | Config | Language |
|---|---|---|---|---|
| Alacritty | OpenGL | No | TOML | Rust |
| Ghostty | Metal/OpenGL | Yes | INI-like | Zig |
| Kitty | OpenGL | Yes | kitty.conf | C+Python |
| WezTerm | OpenGL | Yes | Lua | Rust |
| iTerm2 | Metal | Yes | GUI | ObjC |
常见问题 FAQ
Q: 没有 tab 怎么办? A: 配合 tmux 或 Zellij 用。Alacritty 哲学是做最好的终端渲染器,窗口管理交给专业工具。
Q: 字体模糊?
A: macOS 上确保 Retina 正确识别。设置 [env] TERM = "xterm-256color" 和合适的 font size。
Q: 和 Ghostty 比? A: Ghostty 更「batteries included」(原生 tab、split、平台 UI);Alacritty 更极简、更快、更成熟。
来源与致谢 Sources
- Docs: https://alacritty.org
- GitHub: https://github.com/alacritty/alacritty
- License: Apache 2.0