Alacritty Supports macOS Windows and Linux | Generated by AI
Yes, Alacritty is cross-platform. Evidence from the codebase:
-
Self-described in
Cargo.tomland the man page: “A fast, cross-platform, OpenGL terminal emulator” - Three platform targets in the code via
#[cfg(...)]:target_os = "macos"— native macOS (Cocoa, Metal/OpenGL)windows— Windows (ConPTY)- Linux/Unix with two display backends:
feature = "x11"— X11feature = "wayland"— Wayland
- TTY layer has platform-specific implementations:
tty/unix.rs— macOS + Linux (pty via posix_openpt)tty/windows/mod.rs+conpty.rs— Windows ConPTY
- Font defaults are per-platform (
font.rs:105-110):- macOS:
Menlo - Windows:
Consolas - Linux:
monospace
- macOS:
- Display server selection in
main.rs:12-25:#[cfg(not(any(feature = "x11", feature = "wayland", target_os = "macos", windows)))] compile_error!("..."); // won't compile without at least one platform
So it supports macOS, Windows, and Linux (X11 or Wayland).