Commit Graph

1231 Commits

Author SHA1 Message Date
Matthias Krüger f59aa19892 Fix compiler warnings 2019-06-09 17:52:48 +00:00
Paul Schyska 55d346c7d4 Add RPM spec for building in COPR 2019-06-09 16:30:42 +00:00
Christian Duerr bc2c34eb7f
Add wayland primary selection clipboard support 2019-06-09 11:46:31 +00:00
Christian Duerr 4cd55acd78
Bump minimum supported Rust version to 1.32.0 2019-06-08 16:01:14 +00:00
Christian Duerr 527dc8f564
Fix ncurses backspace key
Ncurses does some special handling for backspace, normally comparing it
to the KEY_BACKSPACE constant. However to make this work, the right
backspace escape sequence needs to be set in the terminfo.

XTerm has this set to ^H, but it always sends ^H. Since Alacritty
usually sends ^? instead, this needs to be specified to allow correct
interpretation for ncurses.
2019-06-07 22:09:22 +00:00
绅士喵 f2b1bfdf37 Fix build without git 2019-06-06 18:46:32 +00:00
Christian Duerr f15ef63edb
Fix index out of bounds during selection
This reworks the selection logic to prevent any possible index out of
bounds exceptions by clamping the start and end points before doing
anything else with them when converting selections to spans.

This also fixes a bug where semantic selections would not automatically
expand across double-width characters.

Fixes #2486.
2019-06-06 13:04:12 +00:00
Elaina Martineau 45565bb9ca Re-invert cursor when in selection 2019-06-06 00:02:20 +00:00
Andy 3931fb6fbc Fix INSTALL.md relative windows/linux build link 2019-06-03 20:01:26 +00:00
Christian Duerr 3156517c70
Add Gentoo install dependencies
While Gentoo was listed in the table of contents of the INSTALL.md, the
instructions to install the build dependencies were missing.

This adds the emerge command necessary to install all dependencies of
Alacritty (other than Rust) so building from source without the overlay
is possible.
2019-06-03 15:18:45 +00:00
Kurgol c75c9a17a7 Fix INSTALL.md .deb instruction link 2019-06-03 15:05:42 +00:00
rbong f79007035c Add foreground/background request escape codes 2019-06-02 13:16:38 +00:00
Khairul Azhar Kasmiran dea7a0890a Skip UTF-8 BOM when reading config file 2019-05-28 16:29:42 +00:00
Ron Waldon bc174a5ec3 Add build instructions for Clear Linux 2019-05-25 10:14:49 +00:00
Wild Kat dbad1b6298 Update license file path for cargo-deb 1.18.0 2019-05-20 18:05:20 +00:00
Jacob Evan Shreve 29c037e3c5 Allow URLs to end with trailing slash 2019-05-19 19:24:00 +00:00
Bernardo Meurer 679b15e274 Update Cargo.lock 2019-05-17 19:08:42 +00:00
Christian Duerr d934df6c0e
Fix URL detection matching invalid URLs
Fixes #2450.
2019-05-16 21:05:00 +00:00
Christian Duerr 2a6e9843ea
Reenable macOS automatic graphics switching
This issue has been resolved upstream by a macOS update, fixing all
crashing issues when switching between integrated and dedicated GPUs.

Fixes #2221.
2019-05-14 15:36:13 +00:00
Kirill Chibisov f93a84aef4 Fix message bar not updating PTY size on hide 2019-05-13 23:06:19 +00:00
Michał Zając 5a71b599da Fix cargo-deb license file path
Fixes #2393.
2019-05-12 17:04:17 +00:00
Jean Mertz 1656aff85e Add support for double-click bracket-pair selection 2019-05-11 16:15:32 +00:00
Elaina Martineau ca9724a5ef Fix cursor only showing up over left half of wide characters 2019-05-11 15:57:22 +00:00
derpmatt bdae9f0f28 Add linux Appstream packaging data 2019-05-11 14:29:07 +00:00
Christian Duerr 5d173f6df3
Refactor config parsing files
This is a large refactor of the config parsing structure, attempting to
reduce the size of the file a bit by splitting it up into different
modules with more specific purposes.

This also fixes #2279.
2019-05-10 11:36:16 +00:00
Michael Murphy 7738c52ed4 Add Ubuntu PPA install instructions 2019-05-09 17:56:34 +00:00
Bastien Orivel 81cd108395 Update dependencies 2019-05-08 08:38:52 +00:00
ijl 864cd9b8ef Add NSSystemAdministrationUsageDescription to macOS manifest
This resolves permission failures when modifying root-owned files
and such, e.g., modifying /etc/hosts. It had been possible
to work around this by adding alacritty to the set of
applications with "Full Disk Access" in System Preferences. macOS
now opens a prompt to confirm permission with a new installation.

This fixes #2337.
2019-05-07 15:49:22 +00:00
Christian Duerr f3cc7c4c4e
Fix empty clipboard freezing Alacritty on X11
This fixes #2392.
2019-05-04 18:05:45 +00:00
Nathan Lilienthal 34c54e7e0e
Add git hash to version string, and fix crate name (#2397)
This moves `cli` out of `alacritty_terminal` and into `alacritty` where
it belongs, along with the `clap` dependency.
2019-05-03 19:48:25 -04:00
Kiril Videlov ba6e208a95 Update Fedora and Ubuntu/Debian dependencies 2019-05-01 13:10:16 +00:00
Christian Duerr bc038f8295
Remove clipboard loading error logging
On macOS the clipboard actually returns an error when loading it and it
is empty. However this is not an `Empty` error but all errors are simple
boxed Errors from std.

Since loading the clipboard data usually should not fail, we now do not
log it as error if it fails but just print it to the debug log instead.

This fixes #2389.
2019-04-30 13:30:46 +00:00
Chris Coutinho 66fb7cb327 Add libxcb-devel dependency to INSTALL.md for openSUSE 2019-04-30 11:47:48 +00:00
Christian Duerr bf353059a0
Fix selection of double-width characters
This changes the selection behavior to automatically select both cells
of double width characters in either selection direction.

This fixes #2322.
2019-04-29 14:33:25 +00:00
Christian Duerr 21a97c1ef2
Fix mouse mode generate events without cell change 2019-04-28 22:36:02 +00:00
JDTX 2c462c7d03 Fix spelling mistakes 2019-04-28 21:42:43 +00:00
Wild Kat ce53639553 Fix cargo-deb license file path 2019-04-28 21:08:41 +00:00
Christian Duerr 9e89aaa477
Switch from copypasta to rust-clipboard
This switches our own `copypasta` crate with the more standardized
`clipboard` library, which allows us to get rid of the `xclip`
dependency on X11.

Additionally, this lays the foundation for native Wayland clipboard
support once the clipboard crate is updated (or a fork is created).

Fixes #5.
2019-04-28 20:21:39 +00:00
Kirill Chibisov 37b66a7cd2 Set _NET_WM_ICON on X11 2019-04-28 18:12:35 +00:00
Elaina Martineau b321406908 Fix double-width characters in URLs only highlighting halfway 2019-04-28 16:09:26 +00:00
Theodore Dubois dbd8538762 Split alacritty into a separate crates
The crate containing the entry point is called alacritty, and the crate
containing everything else is called alacritty_terminal.
2019-04-28 13:24:58 +00:00
Christian Duerr 9c6d12ea2c
Fix position of zero-width over double-width characters 2019-04-25 22:26:22 +00:00
Christian Duerr 494348abe8
Fix cursor disappearing
The cfc20d4f34 commit introduced a
regression which would cause the cursor to disappear after the glyph
cache has been filled.

Since the cursor was not cached on the glyph cache, the cursor would
quickly fill up the OpenGL texture with lots of cursor textures and then
things would break after the atlas was filled completely.

This adds a separate cursor cache which is keyed by the cursor style
that will persist the texture without flooding the atlas.

This fixes #2355.
2019-04-25 20:01:23 +00:00
Christian Duerr e964af8a5e
Show same fg/bg text when inversed
If a cell has a matching foreground and background and is inversed
through the escape or selection, it will now fall back to the default
background on top of the default foreground.

This makes it possible to show invisible text like this by selecting it.

Hidden text is unaffected by this change.

This fixes #2315.
2019-04-25 16:51:45 +00:00
Christian Duerr 73e7a95d54
Fix message bar not updating PTY size 2019-04-24 18:17:09 +00:00
acheronfail e9813031f6 Add fullscreen support
Fixes #34.
Fixes #2012.
2019-04-23 19:05:47 +00:00
Ben Pye b0efa9d105 Add DirectWrite font rasterizer
This adds a DirectWrite font rasterizer for Windows and enables
subpixel rendering and hinting.

It also completely replaces rusttype for font rendering on Windows,
allowing Alacritty to use the native font stacks on all operating systems.

Fixes #1673.
Fixes #2316.
2019-04-23 17:41:21 +00:00
trimental cf1a35bcb4 Update wayland comment in README 2019-04-23 15:27:34 +00:00
Christian Duerr 4fbae5e397
Bump version to 0.3.2 2019-04-22 22:19:55 +00:00
Andrew Opalach c901c74d01 Fix ConPTY panic 2019-04-22 19:50:07 +00:00