Commit Graph

1202 Commits

Author SHA1 Message Date
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
Christian Duerr 2b39e6bf99
Bump version to 0.3.1 2019-04-22 16:04:58 +00:00
Christian Duerr 4b3e7da0fc
Fix hidden cursor inverting cell colors
Since the block cursor inverts the background and foreground colors of a
cell, the hidden cursor has done the same thing without rendering a
cursor since it was using the block cursor shape.

A new `Hidden` cursor style has been introduced for explicitly handling
the invisible cursor differently.

This fixes #2342.
2019-04-22 00:20:43 +00:00
Christian Duerr d3cfda0371
Improve errors for missing shell file on Windows
The ConPTY had a cryptic 'assertion failed: success' error whenever
spawning the shell failed.

This changes the ConPTY assertion to a human-readable error which
clearly states that the file could not be found.

The WinPTY backend has not been fixed yet.

This fixes #2016.
2019-04-21 22:44:09 +00:00
Christian Duerr dd756c27fc
Fix selection copying on Windows
The `copypasta` crate incorrectly mapped the secondary clipboard on
Windows to the primary clipboard, leading to the primary clipboard
getting overwritten whenever the selection clipboard was updated.

The new Windows clipboard mimics the macOS clipboard, which also does
not have a selection clipboard.

This fixes #2050.
2019-04-21 00:52:06 +00:00
Christian Duerr 0d060d5d80
Fix cursor colors
This fixes a recent regression in
cfc20d4f34 which broke cursor colors when
specified in the `colors.cursor` field in the config.

It also removes a lot of unneeded code from the font crate related to
the cursor rendering.

This fixes #2338.
2019-04-20 22:47:05 +00:00
Christian Duerr 371d13f8ef
Fix cursor dimension style issues 2019-04-19 20:56:11 +00:00
Christian Duerr cfc20d4f34
Fix cursor dimensions with font offset
Previously cursor dimensions were not calculated correctly when a font
offset was specified, since the font offset was completely ignored.

This has been fixed by moving all the cursor logic from the font into
the Alacritty crate, applying the config's offsets before rasterizing
the cursors.

This has also fixed an issue with some cursors not being rendered as
double-width correctly when over double-width glyphs.

This fixes #2209.
2019-04-19 18:00:24 +00:00
Nicolas Hahn a47d716daa Update pty size when font size changed 2019-04-19 13:34:38 +00:00
Christian Duerr 6716c81c08
Fix update_lines performance issues
This resolves performance issues with the `update_lines` method that
were caused by excessive updates without underlines or strikeout
present.

This also resolves a bug that was causing the underline and strikeout to
extend beyond the end of line in some rare cases.

This fixes #114.
2019-04-19 12:07:56 +00:00
Nathan Lilienthal badc41e1d0 Remove outdated comment line. 2019-04-18 22:33:57 -04:00
Eike Christian Karbe ab8fddd593 Call TIOCSWINSZ only on grid change
Instead of calling TIOCSWINSZ for every pixel change it will now be called only on changes to the grid size. This should reduce screen refreshes.

This fixes #2177.
2019-04-17 22:42:27 +00:00
Christian Duerr 5174f9b274
Fix duplicate resize events
If a resize event is identical to the current size, it is no longer
propagated but the resize is discarded immediately.

To further prevent resizes when not necessary, the list of monitors is
enumerated and the DPR of the first display is assumed to be the target
DPR.

This allows spawning a window with dimensions when the config has
columns and lines specified and the window only needs to be resized if
the estimated DPR is not correct.

Fixes #1825.
Fixes #204.
2019-04-14 15:37:58 +00:00
Christian Duerr aac62ce5ac
Fix macos subprocess execution
This fixes the execution of subprocesses on macOS which could sometimes
prevent actions like `SpawnNewProcess` or custom commands from launching
their processes correctly.

This fixes #2259.
2019-04-11 08:41:20 +00:00
Matthias Krüger 3478676f8f Remove redundant closures and imports 2019-04-11 07:54:26 +00:00
Michael Murphy d406627acb Add Pop!_OS to the list of supported Linux distros 2019-04-10 18:29:53 +00:00
Alex Touchet 94ab5f2b5b Switch 0.3.0 announcement link to https 2019-04-10 18:11:20 +00:00
Christian Duerr 6518231924
Fix Alacritty icon background on Windows
This fixes #2285.
2019-04-10 00:04:24 +00:00
Christian Duerr e35796485c
Document URL launcher parameter options
This fixes #2112.
2019-04-09 21:17:22 +00:00
Christian Duerr a0e39c9076
Document EGL driver dependency on Wayland
This fixes #1497.
2019-04-09 21:11:54 +00:00
Christian Duerr 272a583bd0
Document VC++ redistributable requirement
This fixes #1972.
2019-04-09 21:05:26 +00:00
Christian Duerr 2b12b16678
Document distro support for precompiled binaries
This fixes #2273.
2019-04-09 20:59:46 +00:00
Christian Duerr 56fea343ff
Set maximum Rust version to 1.31.0
By setting the minimum Rust version and enforcing it with CI, Alacritty
should hopefully make it possible for maintainers to package the
application even on distributions which are not rolling release.

The 1.31.0 target has been chosen here because it's the first version of
the Rust 2018 release. Bumping this version in the future should be
considered to be a breaking change and should only be done with caution
and in consideration of the supported Rust versions of the major
distributions available.

This fixes #2277.
2019-04-09 19:29:46 +00:00
Christian Duerr f2a5def2cb
Add 0.3.0 announcement blog to readme 2019-04-09 16:54:09 +00:00
Alex Touchet 22eff1b550 Remove duplicate changelog entry 2019-04-08 22:37:21 +00:00
Daniel Eklöf bc80a74a69 Reset scrolling region when receiving RIS escape 2019-04-08 22:19:22 +00:00
Jerry Yin 090842bd8e Add ScrollLineUp and ScrollLineDown actions for scrolling line by line 2019-04-08 19:50:06 +00:00
Christian Duerr 6757acbb82
Bump version to 0.3.0 2019-04-08 19:14:51 +00:00
Christian Duerr cd8d537bed
Add new icon to macOS binary
This adds the new Alacritty icon to the macOS binary available in the
github releases. On sizes 128x128 and up the image with scanlines is
included.

The ci deployment process should now also offer the svg file for
download so the .desktop file can be used without having to look through
the repos for the icon.
2019-04-07 04:42:10 +02:00
David Hotham 4cfb17529d Fix warning about inconsistent types in shader 2019-04-06 22:36:49 +02:00