Scripts2026年4月14日·1 分钟阅读

Alacritty — The Fastest GPU-Accelerated Terminal Emulator

Alacritty is a cross-platform OpenGL-accelerated terminal emulator written in Rust. With no tabs, no bells, and no whistles — just raw speed, it has become the benchmark that every other terminal compares itself to.

Introduction

Alacritty was one of the first terminals to offload rendering to the GPU, and still ranks among the fastest across macOS, Linux, and Windows. Written in Rust with OpenGL rendering, it achieves consistently low frame times even when dumping gigabytes of output.

With over 63,000 GitHub stars, Alacritty sacrifices features for speed: no built-in tabs or splits (use tmux/zellij), TOML-only config (no GUI), and a minimal feature set. Users who want raw performance and pair it with a multiplexer swear by it.

What Alacritty Does

Alacritty emulates a VT100-compatible terminal, reads a TOML config file, and renders with OpenGL on a dedicated render thread. Scroll-back buffer, regex search, key-binding customization, and font ligatures are supported, but tabs/splits and GUI configuration are intentionally omitted.

Architecture Overview

TTY -> PTY (spawned shell) -> Alacritty Core
                                   |
                             [Parser - VTE]
                                   |
                             [Grid + Damage Tracking]
                                   |
                             [OpenGL Renderer]
                                   |
                             GPU window (cross-platform)

Self-Hosting & Configuration

[keyboard]
bindings = [
  { key = "N", mods = "Command", action = "SpawnNewInstance" },
  { key = "F", mods = "Command", action = "SearchForward" },
]

[shell]
program = "/bin/zsh"
args = ["-l"]

[env]
TERM = "alacritty"

# Live-reload: just save the file and Alacritty re-renders with new settings

Key Features

  • GPU rendering — consistent frame times under heavy output
  • Cross-platform — macOS, Linux, Windows, BSD
  • Vi mode — navigate scrollback with Vim keys
  • Regex search — Ctrl+Shift+F + regex patterns
  • Live config reload — save config, instantly applied
  • Ligature support — Fira Code, JetBrains Mono, Cascadia Code
  • True color + Sixel (partial) — modern graphics support
  • Minimal config — TOML file, no GUI, no surprises

Comparison with Similar Tools

Feature Alacritty WezTerm kitty Ghostty iTerm2
GPU-accelerated Yes Yes Yes Yes Partial
Tabs/Splits No (use tmux) Yes Yes Yes Yes
Lua config No Yes No (Python) No GUI
Raw speed Fastest Fast Fast Fast Slower
Cross-platform All All All macOS/Linux macOS only
Best For Pure speed + tmux Features + speed Features Modern macOS Mac power users

FAQ

Q: Alacritty vs kitty vs WezTerm? A: All three are GPU-accelerated and fast. Alacritty is minimalist (no tabs, no GUI config). kitty has tabs and remote control. WezTerm has Lua scripting and multiplexer features. Pick Alacritty + tmux if you like a clean separation; kitty/WezTerm if you want everything integrated.

Q: Is Alacritty still the fastest? A: Close — Ghostty, WezTerm, and kitty have caught up. Alacritty remains extremely competitive and often wins on pure throughput benchmarks.

Q: No tabs means I need tmux? A: Yes. That's by design. Alacritty intentionally stays out of the multiplexer business so you use tmux/zellij. Many users find this separation cleaner.

Q: Does it support images? A: Limited. Sixel support is partial; the kitty image protocol isn't supported. For rich image output, kitty or WezTerm are better.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产