1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-18 13:55:23 -05:00
A cross-platform, OpenGL terminal emulator.
Find a file
Joe Wilm 8630185639 Rework font loading
This work started because we wanted to be able to simply say "monospace"
on Linux and have it give us some sort of font. The config format for
fonts changed to accomodate this new paradigm. As a result, italic and
bold can have different families from the normal (roman) face.

The fontconfig based font resolution probably works a lot better than
the CoreText version at this point. With CoreText, we simply iterate
over fonts and check it they match the requested properties. What's
worse is that the CoreText version requires a valid family. With
fontconfig, it will just provide the closest matching thing and use it
(unless a specific style is requested).
2017-01-02 19:49:38 -08:00
copypasta Implement clipboard store for x11 with xclip 2016-12-29 17:57:50 -05:00
docs Add Summary of ANSI standards for ASCII terminals 2016-05-28 08:39:36 -07:00
ffi-util Add ffi-util crate and use in fontconfig wrapper 2016-12-30 18:55:10 -08:00
font Rework font loading 2017-01-02 19:49:38 -08:00
res Live shader reloading is now a feature 2016-10-27 08:43:23 -07:00
scripts Add script for creating flamegraph with perf 2016-10-08 21:30:21 -07:00
src Rework font loading 2017-01-02 19:49:38 -08:00
tests add fish_cc ref 2016-12-16 18:39:51 +08:00
.agignore Add silver searcher ignore file 2016-12-29 10:49:12 -05:00
.gitignore Add script for creating flamegraph with perf 2016-10-08 21:30:21 -07:00
.travis.yml Update nightly pin on travis 2016-12-11 20:26:33 -08:00
alacritty.yml Rework font loading 2017-01-02 19:49:38 -08:00
build.rs Add license headers to source files 2016-06-29 20:59:14 -07:00
Cargo.lock Add ffi-util crate and use in fontconfig wrapper 2016-12-30 18:55:10 -08:00
Cargo.toml Rustup and clippy 2016-12-16 22:13:51 -08:00
LICENSE-APACHE Add license headers to source files 2016-06-29 20:59:14 -07:00
README.md Write README.md 2017-01-02 12:53:08 -08:00
rustc-version Fix rustc-version file 2017-01-01 21:40:18 -08:00
TASKS.md Update task list 2016-06-06 14:59:45 -07:00

Alacritty

Build Status

Alacritty the fastest terminal emulator in existence. Using the GPU for rendering enables optimizations that simply aren't possible in other emulators. Alacritty currently supports macOS and Linux, and Windows support is planned before the 1.0 release.

Alacritty running vim inside tmux

About

Alacritty is focused on simplicity and performance. The performance goal means it should be faster than any other terminal emulator available. The simplicity goal means that it doesn't have many features like tabs or scroll back as in other terminals. Instead, it is expected that users of Alacritty make use of a terminal multiplexer such as tmux.

Installation

The only supported installation method at this time is from source. Proper installers will be added prior to the 1.0 release of Alacritty. This section will walk you through how to build from source on both macOS and Ubuntu.

Prerequisites

  1. Install rustup.rs

  2. Clone the source code:

    git clone https://github.com/jwilm/alacritty
    cd alacritty
    
  3. Make sure you have the right Rust compiler installed. Alacritty is currently pinned to a certain Rust nightly, and the compiler/nightly dependencies are updated as needed. To install the correct compiler, run:

    rustup override set $(cat rustc-version)
    

Additional Linux Prerequisites

Ubuntu

On Ubuntu, you need a few extra libraries to build Alacritty. Here's an apt command that should install all of them. If something is still found to be missing, please open an issue.

apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip
Other

If you build Alacritty on another Linux distribution, we would love some help filling in this section of the README.

Additional macOS Prerequisites

It's possible cmake is needed on macOS to build Alacritty. If someone can verify this and make a PR clarifying either way, it would be greatly appreciated!

Building

Once all the prerequisites are installed, compiling Alacritty should be easy:

cargo build --release

If all goes well, this should place a binary at target/release/alacritty. BEFORE YOU RUN IT: Install the config file as described below; otherwise, many things (such as arrow keys) would not work.

Configuration

Although it's possible the default configuration would work on your system, you'll probably end up wanting to customize it anyhow. There is an alacritty.yml at the git repository root. Copy this to either $HOME/.alacritty.yml or $HOME/.config/alacritty.yml and run Alacritty.

Many configuration options will take effect immediately upon saving changes to the config file. The only exception is the font and dpi section which requires Alacritty to be restarted. For further explanation of the config file, please consult the comments in the default config file.

Issues (known, unknown, feature requests, etc)

If you run into a problem with Alacritty, please file an issue. If you've got a feature request, feel free to ask about it. Keep in mind that Alacritty is very much not looking to be a feature-rich terminal emulator with all sorts of bells and widgets. It's primarily a cross-platform, blazing fast tmux renderer that Just Works.

FAQ

  • Is it really the fastest terminal emulator? In the terminals I've benchmarked against, alacritty is either faster, WAY faster, or at least neutral. There are no benchmarks in which I've found Alacritty to be slower.
  • It's not fast! Why? There's a known bug affecting some versions of Mesa/libxcb where calls to glClear take an insanely long time. If it's not that, there's probably another bug. I'd be happy to look at the issue if you can provide some profiling information (wall time and otherwise).
  • macOS + tmux + vim is slow! I thought this was supposed to be fast! This appears to be an issue outside of terminal emulators; either macOS has an IPC performance issue, or either tmux or vim (or both) have a bug. This same issue can be seen in iTerm2 and Terminal.app. I've found that if tmux is running on another machine which is connected to Alacritty via SSH, this issue disappears. Actual throughput and rendering performance are still better in Alacritty.
  • Is wayland supported? Not yet. Alacritty is currently on a fork of glutin that needs some updates to work with Wayland.
  • When will Windows support be available? When someone has time to work on it. Contributors would be welcomed :).
  • My arrow keys don't work Did you install the default config file?

License

Alacritty is released under the Apache License, Version 2.0.