Commit Graph
98 Commits
Author SHA1 Message Date
Christian Duerr 7f2b398ad2 Remove all instances of unwrap() from config
Unwrapping inside the config file parsing can lead to some issues that
prevent us from falling back to a default configuration file.

One instance of that issue was mentioned in #1135.

Now all instances of `unwrap()` have been removed and replaced with
proper error handling. This will make the config more robust and
prevents live reload from silently breaking while alacritty is running.

This also fixes a few currently existing clippy issues.
Clippy added an additonal lint which complains about `MyStruct { field:
field }`.

These issues have been fixed, except for some false-positives and issues
in external macros which will probably be fixed with future updates (rust-lang-nursery/bitflags#149)
2018-03-04 22:40:15 +00:00
Andy Lok 475ebecfc4 Update arraydeque dependency 2018-02-28 20:33:29 +00:00
Sam Rijs 8045737d58 Upgrade dependencies
Upgrading glutin to the latest version allows building alacritty even
with old XRandr versions.

This is relevant for Debian machines (and other ancient systems).
2018-02-28 19:52:42 +00:00
Jeff Muizelaar 2466f81d5e Update core-text (#1061)
This cleans up a bunch of code.
2018-01-31 09:03:24 -08:00
Christian Duerr 53a5a96fdd Update lockfile
Updated the lockfile to make sure clippy is building properly with the
latest nightly toolchain.
2018-01-30 18:59:17 +00:00
golem131 b82622e994 Update dependencies
Updated the version of some dependencies.

This also changes to a new clippy version so clippy can work with the latest nightly compiler again. Some issues created by new lints have been fixed.
2018-01-26 20:20:42 +00:00
Christian Duerr 692cdef9e3 Update lockfile (#1031)
The lockfile has been updated to make clippy work with nightly again.
2018-01-16 12:29:54 -08:00
Christian Duerr 8aa8422bcc Update lockfile
Clippy failed to build with the latest nightly, so the lockfile has been
updated to allow the nightly builds to work again.
2018-01-11 16:30:52 +00:00
Christian Dürr b83a26ffe0 Enable shift+select in mouse mode
When an application takes control over the mouse, it usually disables
selection completely. However the common way to still make selection
possible is by allowing selection while the shift key is held down.

This feature is implemented here by making use of the new `modifiers`
field on mouse events with glutin/winit.

This fixes jwilm/alacritty#146.
2018-01-03 11:15:57 -08:00
Geert Jansen 20aa45c878 Add support for set-clipboard. (#970)
This allows e.g. tmux to set the clipboard via the OSC 52 escape code.
2018-01-02 08:32:50 -08:00
Theodore Dubois 7895e32083 Remove the launcher and set the locale/current directory in alacritty (#879) 2017-12-24 09:46:54 -08:00
chetgurevitch 958a32767f Update glutin to v0.11 2017-12-23 21:39:09 -08:00
Chet Gurevitch b10390ede8 Update euclid to v16 2017-12-23 21:39:09 -08:00
Chet Gurevitch 76ca679e89 Update bitflags to v1 2017-12-23 21:39:09 -08:00
Chet Gurevitch ae533e660f Update glutin to v0.10 2017-12-23 21:39:09 -08:00
Chet Gurevitch 1117bb5fda Update deps 2017-12-23 21:39:09 -08:00
Joe Wilm 3472921c7d Update dependencies
Also fixes warning from gl generator
2017-12-23 12:33:35 -08:00
Joe Wilm 672ea9b050 Remove built crate
This became a support burden for me due to various compile and run time
issues.
2017-12-22 14:25:14 -08:00
Theodore Dubois 94caa7667d Remove the launcher and set the locale/current directory in alacritty (#879) 2017-12-13 09:52:36 -08:00
Matthias Krüger b2c7fa7ee9 Cargo.lock: bump clippy from 0.0.164 to 0.0.174. 2017-12-03 12:50:40 -08:00
Matthias Krüger 2c443425b0 commit some Cargo.lock changes that "cargo build" would do automatically 2017-12-03 12:50:40 -08:00
hcpl 8a09917dd1 Output more info for --version (#888)
Useful when requesting more info to help investigating issues.
2017-11-11 17:17:47 -08:00
Joe Wilm 6916537858 Update servo-fontconfig-sys fork
Fixes naming collision issue on Fedora 26.
2017-10-08 22:33:01 -07:00
Joe Wilm 619e877819 Add support for env_logger
When RUST_LOG environment variable is set, uses env_logger instead of
our custom logger. This is desirable for debugging purposes.
2017-10-08 22:20:58 -07:00
Joe Wilm 88c1dabefc Revert "Update glutin & fix a few wayland issues (#815)"
This reverts commit e17d38167e.

Was breaking builds for mac users.
2017-10-06 11:32:53 -07:00
Victor Berger e17d38167e Update glutin & fix a few wayland issues (#815)
This PR fixes a few wayland issues of alacritty (and updates glutin on
the process because it is needed).

Mainly two changes are done:

1. Add a drawing_ready() method on Window: see
https://docs.rs/winit/0.8.2/winit/os/unix/trait.WindowExt.html#tymethod.is_ready
for explanations. Hopefully glutin will be able to handle it itself in
the future, but it currently does not.

2. resize window and OpenGL contextes.

The way wayland forces winit to draw its own decorations and how surface
size is defined by its content means that in practice:

- winit's window.set_inner_size() defines the dimensions of the
  borders
- glutins gl_window.resize() defines the dimensions of the content
  (and is a noop in other platforms)

It is for now glutin's user responsibility to keep them in sync
otherwise borders are drawn stupidly. This PR changes the resize methods
of alacritty::Window to always update both.

This fixed the borders issues for me, tested on weston.
2017-10-06 08:47:51 -07:00
Aaron Hill 5f7885749c Use clippy = "*", update, and fix some warnings (#796)
Because there are so many clippy warnings in the current codebase,
this commit removes '#![cfg_attr(feature = "clippy", deny(clippy))]',
to make it easier to fix warnings incrementally.
2017-09-27 17:29:44 -07:00
Jonathan Schleußer a7b50e0eb8 Update notify 2017-09-05 09:07:00 -07:00
Jonathan Schleußer a3d35ec185 Update most remaining deps 2017-09-05 09:07:00 -07:00
Jonathan Schleußer 967393a31c Update servo 2017-09-05 09:07:00 -07:00
Tiziano Santoro 00c9a9faaa Restore winit deps (#763)
Accidentally removed in
https://github.com/jwilm/alacritty/commit/c4ece6dde3c9dcf825a44aa775535a65c0c376a6
when winit version was bumped.
2017-08-29 07:52:20 -07:00
Tim Steinbach c4ece6dde3 winit: 0.7.5 -> 0.7.6, glutin: 0.9.1 -> 0.9.2 (#761) 2017-08-28 10:01:19 -07:00
Martin Lindhe f3e0c8609f font: update macOS core-text dependency to 6.1.0, fixes #685 (#692) 2017-07-28 09:00:55 -07:00
Joe Wilm 49c73f6d55 Use latest winit
Resolves #679
2017-07-21 13:34:52 -07:00
Joe Wilm 8e7dd009a4 Update to latest Glutin/winit (#671)
* Update to latest Glutin/winit

This *finally* gets us off the fork of Glutin we've been on for so long
and will unblock a number of other items. Functionality should be the
same as before.

The update forced our hand on a compiler update. It's no longer
feasible to pin on an old version. From now on, we require latest
stable.
2017-07-20 10:50:50 -07:00
Joe Wilm 08b5ae52c1 Revert "Reduce InstanceData footprint"
This reverts commit 3cdba29124.

On some systems, the target commit actually caused a massive performance
issue rather than fixing one.
2017-07-03 19:45:21 -07:00
Joe Wilm 3cdba29124 Reduce InstanceData footprint
The InstanceData type in the rendering subsystem was previously 16
floats which occupied a total of 64 bytes per instance. This meant that
for every character or background cell drawn, 64 bytes were sent to the
GPU. In the case of a 400x100 cell grid, a total of 2.5MB would be sent.

This patch reduces InstanceData's size to 26 bytes, a 60% improvement!
Using the above example for comparison, a worst case of 1MB would be
transferred.

The motivation for this patch comes from macOS. Once the terminal grid
would reach a certain size, performance experienced a sharp and dramatic
drop (render times would go from ~3ms to ~16ms). I don't want to
speculate too much on the underlying issue, but suffice it to say that
this patch alleviates the problem in my testing.
2017-07-01 10:24:50 -07:00
Joe Wilm 63787d0bf0 Use foreign-types from crates.io
We had previously vendored a very early version of this package before
it was ever published.
2017-06-27 09:29:09 -07:00
Joe Wilm 0091d3cb99 Update vte dependency
cc #68
2017-06-20 08:01:17 -07:00
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
Martin Algesten 1fb2c843be final core-graphics extensions moved upstream 2017-06-01 09:47:58 -07:00
Martin Algesten dafa4ccde9 updated some font deps 2017-05-31 09:30:54 -07:00
Joe Wilm f051e686da Update dependencies 2017-05-25 10:57:42 -07:00
Joe Wilm 574586045f Support setting _NET_WM_PID in X11 environments
Support is added for setting _NET_WM_PID automatically. This is to
support scripting of the window environment. For example, this makes it
possible to script opening a window with same CWD:

1. Retrieve the current window
2. (new) get PID of window
3. Check if it's Alacritty, find first child (presumably a shell), and
   get the child's cwd.
4. Spawn new instance of terminal with cwd.

Unaddressed in this commit is how this will coexist on a Wayland system.
2017-05-01 08:36:09 -07:00
Joe Wilm 00d271b7e0 Fix bug parsing OSC strings
OSC strings with UTF-8 previously failed.
2017-03-02 09:19:01 -08:00
Joe Wilm 119c7d2856 Add support for wide characters 2017-03-02 09:19:01 -08:00
Joe Wilm 31ed5160a0 Change cursor colors config to use text and cursor
This changes the cursor color config to use the `text` and `cursor`
properties instead of the current `foreground` and `background`
properties. The latter names stop making sense when dealing with cursors
like a vertical bar or underscore. In the new system, the block,
underscore, or vertical bar would always take the color of `cursor`, and
the text would take the color of `text` when using a block, or keep its
normal color when using the underscore or vertical bar.

A warning is now emitted on startup when the old form of cursor color
config is used. This will be a hard error in the future.
2017-02-25 07:55:35 -08:00
Joe Wilm 418df72a07 Bump glutin
Resolves #422
2017-02-17 23:16:37 -08:00
Michel Boaventura e0980df48e Updates Glutin to proper handle dead keys
Resolves #211.
2017-02-17 15:28:46 -08:00
David Tolnay 2063f54455 Update serde_yaml to 0.6.1
This release reports better errors:

> font.use_thin_strokes: invalid type: string "tru", expected a boolean at line 51 column 21
2017-02-10 18:22:45 -08:00