Commit Graph

1562 Commits

Author SHA1 Message Date
Christian Duerr 4b2be6d7b1
Remove tests failing in release mode 2019-11-19 19:02:10 +01:00
Christian Duerr f4fccfc7a7
Bump glutin depedency 2019-11-18 23:08:49 +01:00
Nathan Lilienthal 182a9d5c2e Fix deletion of lines when clearing the screen
Previously Alacritty would delete lines when clearing the screen, leading to a
loss of data in the scrollback buffer. Instead of deleting these lines, they
are now rotated outside of the visible region.

This also fixes some issues with Alacritty only resetting lines partially when
the background color of the template cell changed.

Fixes #2199.
2019-11-18 22:15:25 +01:00
Kirill Chibisov bcdc605436 Fix ESC escapes not ignoring invalid intermediates
Previously, `ESC` escapes would ignore invalid intermediates and still
execute the specified actions, leading to false positives. If there's an
unexpected, intermediate specified now, the escape will be dropped.

This also fixes an issue with `CSI Ps c` not dropping the escape with
invalid intermediates.
2019-11-17 03:10:11 +01:00
Kirill Chibisov 495a6f3526 Fix cell reset not clearing flags and foreground
Fixes #2330.
2019-11-17 01:04:16 +01:00
Maciej Makowski 48861e4633 Fix WinPTY freeze on termination
Fixes #2889.
2019-11-16 22:11:56 +01:00
Christian Duerr d741d3817d
Add reftest for line deletion 2019-11-15 23:37:24 +01:00
Christian Duerr 2a8c6d44e9
Fix `CSI Ps M` deleting lines above cursor
Fixes #2984.
2019-11-15 20:58:03 +01:00
Burak Yigit Kaya 561063b560 Fix division by zero without any cols or lines
The URL check uses a division to wrap column indices across lines, which
will cause a runtime error if the size of the terminal is zero columns
wide.

Since a lot of our logic assumes that we at least have one column and
line to work with and our behavior doesn't matter otherwise, this change
fixes the terminal dimensions to have space for at least one cell.
2019-11-14 00:36:54 +01:00
Kirill Chibisov d707e064a9 Fix mouse modes not being mutually exclusive 2019-11-12 17:50:33 +01:00
Christian Duerr cce3af3d91
Fix incorrect DPI at startup on X11
Fixes #2938.
2019-11-12 00:18:33 +01:00
Christian Duerr c6510a29e6
Fix modifier inconsistencies
Fixes #2906.
2019-11-11 22:05:24 +01:00
Christian Duerr e8ca1ef7d9
Add escape for reading clipboard 2019-11-11 01:12:14 +01:00
Christian Duerr 0ac3481f83
Add ref test for verifying colored clear behavior
This covers the behavior of clearing the screen and a row with colored
cells.

This covers a bug discovered in #2329 which was not detected in any
existing ref tests.
2019-11-10 20:26:39 +01:00
Christian Duerr 679e67d045
Fix URL scheme highlighting 2019-11-04 20:41:42 +01:00
Kirill Chibisov 2c671afb69 Add UTF-8 mouse mode support
Fixes #1934.
2019-11-04 20:41:13 +01:00
Christian Duerr 93e87eb0f1
Fix incorrect cell foreground when clearing screen
This fixes a bug that would clear the cells with the current template
cell with just the `flags` reset, to make sure the colors are correct.
However, the cell foreground was not reset, leading to cells counting as
occupied when resizing.

With this change both cell flags and foreground color are ignored when
clearing both the whole screen and inside the line, allowing us to
accurately keep track of cell occupation.

Fixes #2866.
2019-11-04 00:14:23 +01:00
Christian Duerr b47a88b142
Fix URL highlighting
Fixes #2898.
Fixes #2479.
2019-11-03 21:59:28 +01:00
wayne fa6ceacfa4 Add live config reload for font family and style
Fixes #2737.
2019-11-03 20:02:26 +01:00
Kirill Chibisov 4dd327f0ae Fix wrong default cursor icon 2019-11-02 12:34:07 +01:00
Christian Duerr 356e418636
Fix clippy warnings 2019-11-02 01:25:34 +01:00
David Hewitt 3e5511a693 Remove unused imports on Windows 2019-10-31 22:10:30 +01:00
Kirill Chibisov b3afb97fcd Fix message bar drawing over terminal after resize
This regression was introduced in
729eef0c93.

Fixes #2924.
2019-10-29 17:58:26 +01:00
Kirill Chibisov b735975486 Fix sending chars with bind not clearing selection
Fixes #2925.
2019-10-29 17:56:48 +01:00
Kirill Chibisov 9ff2838844 Fix visual bell rendering mode
Fixes #2911.
2019-10-26 21:45:47 +02:00
Kenny Levinsen 77127fbb41 Fix bell not redrawing without event updates
Fixes #2914.
2019-10-25 00:26:33 +02:00
Do Duy b4a09cd945 Fix setting persistent logging via CLI 2019-10-24 05:11:17 +02:00
Kirill Chibisov d76bb0c697 Update dependencies 2019-10-23 21:17:09 +02:00
Kohki Miki 9e0b9d5de1 Fix unused import warning on macOS/Windows 2019-10-22 17:42:07 +02:00
cyclopsian 8a26341457 Fix XEmbed compilation error on 32-bit platforms 2019-10-20 14:30:59 +02:00
Dustin a75e949344 Fix window title not filled by default
In the config, if `window` is undefined, the derived `Default` for the
String `title` is used, which is an empty String. This was unintended,
and causes issues in gnome-shell (e.g. in the alt-tab dialog) when the
window title is an empty string.

This commit adds a manually implemented default for the `WindowConfig`,
it's the same as the derived `Default`, except for the `title`, which
will now always be "Alacritty" as originally intended.
2019-10-17 21:24:21 +02:00
Ckat f1f51d3c02 Remove terminfo from deb package
Fixes #2685.
2019-10-16 21:31:12 +02:00
Kirill Chibisov 7b814c3be7 Bump winit version
Fixes cursor icon managing with `hide_when_typing: true` on Wayland.
2019-10-16 21:20:38 +02:00
Christian Duerr 28cf90d130
Revert "Disable depth and stencil buffers"
This reverts commit 3475e44987.
2019-10-16 02:53:36 +02:00
Christian Duerr 1538f09e0c
Print launch command name on failure 2019-10-15 22:53:25 +02:00
Aleksey Kuznetsov 49380bffd2 Add support for alternate scroll escape
Fixes #2727.
2019-10-15 21:13:58 +02:00
Kirill Chibisov 124e98e94e Fix logged config path separators on Windows
It was discovered that we were logging path with `\\` instead of `\` as
separators on Windows due to use of Debug formatting instead of Display
for paths.
2019-10-14 22:34:54 +02:00
Dustin 401c2aab96 Add support for title stack escape sequences
This commit adds the concept of a "title stack" to the terminal. Some programs
(e.g. vim) send control sequences `CSI 22 ; 0` (push title) and `CSI 23 ; 0`
(pop title).

The title stack is just a history of previous titles.  Applications can push
the current title onto the stack, and pop it back off (setting the window title
in the process).

Fixes #2840.
2019-10-14 19:50:58 +02:00
Jasper Mattsson 3475e44987 Disable depth and stencil buffers
Disable allocation of depth and stencil buffers. This reduces active
GPU memory consumption by almost a third, at least on Linux.
2019-10-11 22:16:13 +02:00
Christian Duerr 2f83f2dd2e
Add libxcb-xfixes0-dev as travis dependency
Currently on Linux the CI is not building since it cannot fint xcb for
linking. Installing it in the pre-install hook should make sure it's
available when linking.
2019-10-10 01:19:11 +02:00
Valentin Ignatev 4cb5566a9c Add --hold CLI flag
This implements --hold flag which keeps Alacritty open after
its child process exits.

Fixes #1165.
2019-10-09 23:37:48 +02:00
Kirill Chibisov 24651a6144 Remove automatic config generation
Fixes #2818.
2019-10-06 12:47:20 +02:00
Christian Duerr 729eef0c93
Update to winit/glutin EventLoop 2.0
This takes the latest glutin master to port Alacritty to the EventLoop
2.0 rework.

This changes a big part of the event loop handling by pushing the event
loop in a separate thread from the renderer and running both in
parallel.

Fixes #2796.
Fixes #2694.
Fixes #2643.
Fixes #2625.
Fixes #2618.
Fixes #2601.
Fixes #2564.
Fixes #2456.
Fixes #2438.
Fixes #2334.
Fixes #2254.
Fixes #2217.
Fixes #1789.
Fixes #1750.
Fixes #1125.
2019-10-05 02:29:26 +02:00
Clément L b0c6fdff76 Update VirtualKeyCode url in alacritty.yml 2019-10-04 12:27:06 +02:00
wayne f6f444bc2d Add live config reload for font size 2019-10-02 20:49:19 +02:00
Paolo Capriotti 3e82aa2830 Concatenate parameters of title OSC
A semicolon in a title OSC should be interpreted literally, not as a parameter
separator, but the OSC parser is very simple and does not know about arities of
commands.

Therefore, this patch takes all the parameters returned by the OSC parser and
reconstructs the original string by interspersing semicolons. Now an OSC like
'\e]2;hello;world' will set the title to 'hello;world' and not 'hello' like
before.
2019-09-28 18:59:27 +02:00
zsugabubus fe6f1760b4 Add `ReceiveChar` action for passing key's text 2019-09-28 02:37:22 +02:00
Christian Duerr 87cf14a4b7
Fix selection not inverting terminal background
Fixes a regression introduced in
9a0555bbba where the terminal background
would not get inverted when selected.
2019-09-26 20:55:30 +02:00
Kirill Chibisov 9a0555bbba Fix cell opacity when color matches terminal bg
Commit e964af8 introduced a regression, where if cell's bg color was
equal to NamedColor::Background rgb color it was rendered with transparent
background. However the correct behavior is to render bg transparent
only when bg color is actually a NamedColor::Background.

Fixes #2814.
2019-09-26 16:10:54 +02:00
Kirill Chibisov ad24485cdb Fix overflow on wrong scroll region setting
Fixes #2822.
2019-09-26 14:44:59 +02:00