Commit Graph
2478 Commits
Author SHA1 Message Date
Christian Duerr de5492aff0 Fix release CI
This fixes an issue with the release CI script caused by outdated
Ubuntu mirrors.
2026-04-02 21:19:26 +00:00
Christian Duerr e72e077405 Alacritty version 0.17.0-rc1 alacritty_terminal_v0.26.0-rc1 v0.17.0-rc1 2026-03-21 01:49:50 +00:00
Christian Duerr a0be6eb824 Fix signal cleanup polling
This fixes two minor issues introduced in 96f488d.

The main problem was the fact that the I/O event polling on Unix was
only started when the IPC socket feature is enabled. While generally
this is the main reason why we need to shutdown cleanly, there's no
reason why we wouldn't *always* do so. This ensures the log file is
always cleaned up properly on Unix.

Another minor issue with the signal polling was that the pipe was
registered for reading, but never drained when it was ready to be read
from. While this would mean we're already in the process of shutting
down anyway, this would redundantly send about 1000 shutdown requests,
rather than just one.
2026-03-14 02:52:35 +00:00
Christian Duerr 96f488dd3f Fix resource cleanup for signal shutdown
This fixes an issue where Alacritty's resources, like its socket, would
stick around after getting killed, since termination signals like
SIGTERM were not handled explicitly.

To handle these signals, the IPC thread was changed to a general-purpose
I/O polling thread, listening for events on a signal pipe and the IPC
socket.

While this does not provide support for Windows, we also do not have an
IPC socket on Windows we would need to clean up.

Closes #8805.
2026-03-05 05:14:21 +00:00
Bradley Walters 889fa412c1 Remove flash terminfo capability
The flash capability was using DECSCNM (ESC[?5h/ESC[?5l) to toggle
reverse video mode for a visual bell effect. However, the vte crate
does not implement DECSCNM (private mode 5), so the sequence is
ignored as an unknown mode.

Remove the capability from terminfo so programs can accurately
determine how to ring the user (e.g. by falling back to the audible
bell as vi does).
2026-03-03 16:50:32 +00:00
Kirill Chibisov 51f742b392 Bump winit to 0.30.13
Fixes #8791.
2026-03-03 09:48:54 +09:00
Christian Duerr e1779cbc58 Move escape sequence docs to manpage
Closes #7235.
2026-02-25 10:09:30 +09:00
Smit Barmase 4225cea231 Use ExitStatus for tty shutdown events 2026-01-29 01:10:12 +00:00
Ben Beasley 08134af853 Add toml 1.1.0 support 2026-01-14 22:30:36 +00:00
Kirill Chibisov 6ee6e53ee3 Fix mouse wheel bindings not working in mouse mode
Since bindings were never checked in mouse mode, the bindings defined in
83f6443 could not be used while holding shift.
2025-12-23 00:39:50 +00:00
Jonas 83f6443537 Add support for mouse wheel bindings 2025-12-21 21:38:34 +00:00
Kirill Chibisov 18372031d1 Use built-in font for U+1FB82 to U+1FB8B
Those are block elements in 'Symbols for Legacy Computing' that
complements the ones from original block elements, but from the opposite
side.

Part-of: #7422.
2025-12-06 00:27:56 +09:00
Alisa Sireneva 52031ea919 Fix some non-async-signal-safety in pre_exec 2025-11-24 18:53:22 +00:00
Niklas 6ea359d369 Bump makefile MACOSX_DEPLOYMENT_TARGET to 10.12 2025-11-17 22:32:53 +00:00
Christian DuerrandKirill Chibisov 0346c993f5 Fix broken IME with Wayland pointer devices
This is a second attempt at 1399545.

The previous implementation tried to use mouse focus tracking to control
IME activity, which does not work since IME focus is unrelated to the
pointer.

This patch instead inhibits IME on the first touch sequence during focus
loss, forcing a touch tap before enabling IME again. This effectively
disables IME with the touch event used to focus the window, assuming the
compositor sends the touch down before the focus-in event.

To avoid the IME opening for a brief period of time while the window is
gaining focus again, we disable IME on focus loss, then reenable it once
focus is gained again. While this does theoretically change the behavior
with pointer input, it shouldn't impact usability since IME input
without keyboard focus isn't usually possibly anyway.

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
2025-11-16 15:47:51 +00:00
Kirill Chibisov bf68154f9e Allow disabling IME on X11
Previously IME was forced on X11 due to disable/enable not really
working on it. However, the new IME logic in winit had this issue
fixed for a while.
2025-11-12 11:40:24 +09:00
Kirill Chibisov cca394810a Revert "Ignore touch gestures for enabling IME"
Pointer events shouldn't disable IME in any way, however without them
touch doesn't really work in the current implementation, so revert it
for now to make review of the proper patch for touch easier.

This reverts commit 1399545f48.
2025-11-09 18:24:54 +09:00
Kirill Chibisov c2b75f293c Try both robust and non-robust configs
It was suggest to try building both robust and non-robust as a fallback
due to 1.5 not mandating robustness, and also not mandating extension,
so the robustness can be supported, but without the extension present.

This reverts commit 7b33cbcbc2.
2025-11-05 09:50:43 +09:00
Laurence Tratt fff942ac54 Add foreground CWD implementation for OpenBSD 2025-11-02 02:18:09 +00:00
Christian Duerr 1399545f48 Ignore touch gestures for enabling IME
Previously whenever the user would use touch gestures to make selections
or scroll the terminal, IME would automatically be enabled due to the
focus change and reduce the terminal height. This isn't ideal when the
goal is just scanning through the terminal history without making any
input.

This patch keeps track of pointer and touch focus and only enables IME
when either the pointer is within the window or a tap touch sequence was
performed to give the window 'touch focus'.

The initial touch tap sequence used to enable IME is still forwarded to
the terminal as a simulated click event, since otherwise touch devices
without virtual keyboard would be forced into a confusing additional tap
to make it work. This means that virtual keyboard users will not be able
to open the virtual keyboard without creating a click event, which
should still be preferable to the status quo.
2025-10-26 05:26:27 +00:00
Christian Duerr 52deae45bc Remove undefined logo SVG gradient
This removes a gradient that apparently doesn't exist, which causes
issues with some SVG rasterizers.

Closes #8706.
2025-10-20 05:54:11 +00:00
Christian Duerr 7b33cbcbc2 Fix OpenGL robustness crash
This disables the OpenGL context's robustness feature since some GPUs
that advertise robustness support do not support sufficient capabilities
for our implementation.

Closes #8713.
2025-10-20 14:27:07 +09:00
Christian Duerr 08882d521d Fix changelog entry for 0.16.0 release 2025-10-18 03:21:50 +00:00
Lulu a513d13779 Ignore when config file is moved
As this is practically the same as deleting the file it should be
treated the same and ignored.

Moving a file from somewhere to the config file is not ignored and the config
will reload as normal.
2025-10-16 06:37:33 +00:00
Christian Duerr 48e19ec3cb Bump dependencies
This performs all non-breaking dependency updates, which includes
unicode-width 0.2.2 for Unicode 17 support.
2025-10-08 21:05:01 +09:00
Andy fa36b3abb1 Disable NSAutoFillHeuristicController on macOS 2025-10-04 18:43:53 +00:00
Kirill Chibisov a2334ff494 Bump winit to 0.30.12
That may still be needed for macOS 26 to not blow up.
2025-09-12 09:23:58 +09:00
skewb1k 97fde106c0 Fix hint highlighting when hovering with hidden mouse
When the mouse cursor was hidden with `hide_when_typing` enabled, hints
could still be highlighted under the hidden cursor. This typically
occurred when a hint moved underneath the stationary, hidden cursor.

This fix ensures hints are not highlighted by the mouse cursor while
it's hidden.
2025-09-01 17:11:21 +00:00
Christian Duerr 8e0327b3fb Bump development version to 0.17.0-dev
This is only an update to the development version and does not represent
a stable release.
2025-08-30 04:37:53 +00:00
Pavel Roskin 985def87c7 Fix maximized startup with tabs on macOS
Closes #8664.
2025-08-21 20:59:18 +00:00
Lukas Fink 7201a6ae06 Add cooldown to bell command execution
Closes #8655.
2025-08-17 12:13:34 +00:00
feeiyu 84377a45a8 Add alacritty_terminal option to escape pty args
This adds a new `escape_args` option to `tty::Options` on Windows, which
can be used to automatically escape all arguments passed to the shell.

While useful to automatically make most arguments work on Windows, there
are some scenarios where it is not possible for users to properly
specify arguments with this option enabled (e.g.: `cmd /c`). An option
should always be present to disable this option when used.

The implementation is based on the `Command` code in Rust's STD lib.
2025-08-02 16:39:00 +00:00
Znarf f07622e908 Improve builtin font ellipse rendering 2025-07-31 16:03:31 +00:00
Christian Duerr 9f8fed7c9e Fix DECOM cursor motion
This fixes a missing `GOTO 0,0` when entering the terminal origin mode.

Closes #8636.
2025-07-25 08:57:22 +09:00
Christian Duerr 376cdb3700 Update to toml 0.9 2025-07-13 18:53:35 +00:00
Christian Duerr bb02cb13f1 Migrate to 2024 edition 2025-07-13 06:15:02 +00:00
tidelyandChristian Duerr b0304431c4 Add size_hint to GridIterator
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2025-07-13 05:27:34 +00:00
mBornandandChristian Duerr f440cd4d6d Add global config fallback
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2025-07-07 21:44:55 +00:00
prime-run fad5360bf0 Add yank to EOL vi mode binding 2025-07-07 19:37:09 +00:00
Christian Duerr 5168dada10 Add multi-sequence touch zoom support
This changes the way the touch zoom works by switching into a separate
mode when one of the touch slots is removed, allowing continuous zoom as
long as at least one slot is active.
2025-07-04 02:05:01 +00:00
Kirill Chibisov 2d79edab16 Remove cstr! macro in favor of literal notation
Also apply clippy changes while at it.

Closes #8002.
2025-07-01 23:52:08 +09:00
Kirill Chibisov 3ea13aeadc Fix crash when AppleFontSmoothing is not present 2025-06-19 16:09:47 +09:00
Kirill Chibisov 80d87ed5db Apply clamp for opacity
Previously opacity was not clamping during reading it from the config
or via IPC.
2025-05-31 10:29:24 +09:00
Kirill Chibisov 4ad5ba3630 Update alacritty-msg(1) for msg get-config entry
Follow up to a63c770be.
2025-05-30 22:40:19 +09:00
Christian Duerr a63c770bef Add IPC config retrieval subcommand
This patch adds a new `alacritty msg get-config` subcommand which can
retrieve the current config from any Alacritty window using the IPC
socket.

The command will always print the full configuration file in JSON,
without the ability to filter which values are returned, leaning on
tools like `jq` instead of adding this complexity to Alacritty.

Contrary to deserialization, this relies heavily on the default
serialization implementations to reduce the necessary changes. Key and
Mouse bindings are omitted entirely since their structure is very
complex and they tend to just bloat the message size without having an
obvious usecase.
2025-05-29 18:55:34 +00:00
Kirill Chibisov 9eb68039dc Bump all dependencies 2025-05-28 14:16:36 +09:00
Kirill Chibisov ee48fad2cf Fix clippy warnings 2025-05-28 14:16:36 +09:00
Kirill Chibisov 1fb1fd225e Bump MSRV to 1.81.0
Also use workspace to specify that.
2025-05-28 14:16:36 +09:00
Christian Duerr 00a516abc7 Fix search for fullwidth chars in the last column
This fixes an issue for fullwidth characters where the `WRAPLINE` flag
would be checked for the cell containing the wide character, ignoring
the spacer after it.

To work around this, the wrapline character is now always checked based
on the cell *after* fullwidth expansion, instead of the original cell.

Closes #8586.
2025-05-26 17:58:59 +09:00
Christian Duerr b02e4fce05 Add changelog entry for 71feeee 2025-05-21 15:34:10 +09:00