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 529ac47fc8 Add support for Beam, Underline cursors
Notable about this implementation is it takes a different approach for
managing cursor cells that previously. The terminal Grid is now
borrowed *immutably*. Instead of mutating Cells in the Grid, a list is
managed within the RenderableCellsIter. The cell at the cursor location
is skipped over, and instead cells are popped off a list of cursor
cells.

It would be good in the future to share some more code between the
different cursor style implementations for populating the cursor cells
list.

Supercedes #349.
2017-06-11 13:21:13 -07:00
assets/osx/Alacritty.app/Contents Setup locale properly in new shell (thanks @casimir) 2017-03-07 09:09:43 -08:00
copypasta Decouple input processing from Term 2017-02-02 09:25:08 -08: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 changes osx fallback symbol font style 2017-06-06 20:59:21 -07:00
res Fix glyph offsets in cell 2017-05-06 12:53:54 -07:00
scripts Add script to apply a tilix colorscheme file. (#524) 2017-05-27 19:58:14 -07:00
src Add support for Beam, Underline cursors 2017-06-11 13:21:13 -07:00
tests Add window padding option 2017-05-06 12:53:54 -07:00
.agignore Add silver searcher ignore file 2016-12-29 10:49:12 -05:00
.gitignore Ignore temp files 2017-03-06 10:27:25 -08:00
.travis.yml CI with the oldest known working version of rust 2017-06-04 09:46:42 -07:00
Alacritty.desktop Add trailing semicolons to Categories and Actions 2017-04-23 09:18:37 -07:00
alacritty.info Add terminfo file supporting true color, italics 2017-05-27 19:55:43 -07:00
alacritty.yml Fix default color scheme 2017-05-27 20:02:36 -07:00
alacritty_macos.yml Fix colors in macOS config 2017-05-27 20:02:56 -07:00
build.rs Add license headers to source files 2016-06-29 20:59:14 -07:00
Cargo.lock Add support for Beam, Underline cursors 2017-06-11 13:21:13 -07:00
Cargo.toml Add support for Beam, Underline cursors 2017-06-11 13:21:13 -07:00
LICENSE-APACHE Add license headers to source files 2016-06-29 20:59:14 -07:00
Makefile Add tiny wrapper to start from '$HOME' 2017-03-06 10:27:25 -08:00
README.md Update build instructions about Homebrew Rust bug 2017-05-03 10:45:06 -07:00
TASKS.md Update task list 2016-06-06 14:59:45 -07:00

Alacritty

Build Status

Alacritty is 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.

This initial release should be considered to be pre-alpha software--it will have issues. Once Alacritty reaches an alpha level of readiness, precompiled binaries will be provided for supported operating systems.

Further information

Package 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.

Arch Linux

git clone https://aur.archlinux.org/alacritty-git.git
cd alacritty-git
makepkg -isr

Manual Installation

Prerequisites

  1. Install rustup.rs. DO NOT use the Homebrew Rust compiler on macOS (see FAQ for explanation).

  2. Clone the source code:

    git clone https://github.com/jwilm/alacritty.git
    cd alacritty
    
  3. Make sure you have the right Rust compiler installed. Alacritty requires at least 1.15. Run

    rustup override set stable
    rustup update stable
    

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

Arch Linux

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

pacman -S cmake freetype2 fontconfig pkg-config make xclip

Fedora

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

dnf install cmake freetype-devel fontconfig-devel xclip

openSUSE

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

zypper install cmake freetype-devel fontconfig-devel xclip

Slackware

Compiles out of the box for 14.2 For copy & paste support (middle mouse button) you need to install xclip https://slackbuilds.org/repository/14.2/misc/xclip/?search=xclip

Void Linux

On Void Linux, install following packages before compiling Alacritty:

xbps-install cmake freetype-devel freetype expat-devel fontconfig xclip

FreeBSD

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

pkg install cmake freetype2 fontconfig xclip

Other

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

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) will not work. If you're on macOS, you'll need to change the monospace font family to something like Menlo.

Desktop Entry

Many linux distributions support desktop entries for adding applications to system menus. To install the desktop entry for Alacritty, run

sudo cp target/release/alacritty /usr/local/bin # or anywhere else in $PATH
cp Alacritty.desktop ~/.local/share/applications

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 a default alacritty.yml at the git repository root. Alacritty looks for the configuration file as the following paths:

  1. $XDG_CONFIG_HOME/alacritty/alacritty.yml
  2. $XDG_CONFIG_HOME/alacritty.yml
  3. $HOME/.config/alacritty/alacritty.yml
  4. $HOME/.alacritty.yml

If neither of these paths are found then $XDG_CONFIG_HOME/alacritty/alacritty.yml is created once alacritty is first run. On most systems this often defaults to $HOME/.config/alacritty/alacritty.yml.

Many configuration options will take effect immediately upon saving changes to the config file. The only exception is the font, dimensions and dpi sections 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

  • proc-macro derive panicked during macOS build; what's wrong? There's an issue with the Rust compiler from Homebrew. Please follow the instructions and use rustup.
  • 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.
  • 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. To stop glutin from detecting Wayland (e.g. for use on XWayland) launch Alacritty like this: env WAYLAND_DISPLAY= alacritty
  • When will Windows support be available? When someone has time to work on it. Contributors would be welcomed :).
  • My arrow keys don't work. It sounds like you deleted some key bindings from your config file. Please reference the default config file to restore them.

IRC

Alacritty discussion can be found in #alacritty on freenode.

License

Alacritty is released under the Apache License, Version 2.0.