summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-21Alacritty version 0.10.1v0.10.1v0.10.1Kirill Chibisov
2022-02-10Alacritty version 0.10.1-rc1v0.10.1-rc1Kirill Chibisov
2022-02-10Add version to info logChristian Duerr
2022-02-10Fix warnings when building only with Wayland featureKirill Chibisov
This commit also makes our CI fail hard when warning encountered when building only for either Wayland or X11.
2022-02-10Fix alpha when using `colors.transparent_background_colors`Kirill Chibisov
The alpha is expected to be premultiplied from the text shader, so we should apply it to the background color.
2022-02-10Fix builtin font block elements going invisibleKirill Chibisov
2022-02-10Fix repeated permission requests on M1 macsChristian Duerr
This adds a codesign step to our makefile build which should automatically sign the application and resolve the issues on M1 macs where Alacritty constantly requests permissions. Since self-signing does still seem to fix this issue after sharing the resulting `Alacritty.app` with other M1 macs, the binary produced by our release build should also be fixed automatically. Fixes #5840.
2022-02-10Use cell width to compute builtin font thicknessKirill Chibisov
While using underline thickness could sound logical to draw other lines most fonts don't make underlines thick compared to cell bounding box if you increase font size. So instead we're using cell width to scale builtin font nicely. This commit also adjusts arcs drawing and alignment. Fixes #5826. Fixes #5821.
2022-02-10Log used display server on Linux/BSDKirill Chibisov
This also fixes a bug where the welcome log message wasn't logged.
2022-02-10Account for font.offset and glyph.offset in built-in fontKirill Chibisov
This commit takes into account `font.offset` and `font.glyph_offset` when generating built-in font.
2022-02-10Add option to control built-in box drawing charszandr
This commit adds the config `font.builtin_box_drawing` option to control built-in font, which is enabled by default.
2022-02-10Reset cursor blinking on ToggleViModeKirill Chibisov
Fixes #4468.
2022-02-10Fix OSC 104 with empty second parameterDaftMouse
This fixes a bug where using OSC 104 without parameters but with a trailling semicolon (e.g. '\e]104;\e\\') would not be handled. Fixes #5542.
2022-02-10Add ´?´ support to OSC 4DaftMouse
2022-01-23Alacritty version 0.10.0v0.10.0alacritty_terminal_v0.16.0v0.10.0Christian Duerr
2022-01-23Fix logfile overwriting existing filesChristian Duerr
2022-01-13Alacritty version 0.10.0-rc4v0.10.0-rc4alacritty_terminal_v0.16.0-rc4Christian Duerr
2022-01-13Remove time dependencyChristian Duerr
In 7398e9f a regression was introduced which causes Alacritty to crash on startup since wayland has a keyboard repeat rate thread started before our logger is initialized. Since the latest version of time was rather inconvenient to use anyway and there is no nice solution for this issue other than downgrading the `time` version again, the time since startup is now logged instead of the local time. This should still provide all the relevant information, while getting rid of an unnecessary dependency. While it would be possible to also print the delta between log messages, this can be trivially computed so it has been omitted to skip adding another `Mutex` to the `Logger` struct.
2022-01-13Alacritty version 0.10.0-rc3v0.10.0-rc3alacritty_terminal_v0.16.0-rc3Christian Duerr
2022-01-13Fix macOS release CIChristian Duerr
Since the CI machine is amd64, it is not possible to just execute the aarch64 binary to test the application. So instead of running `cargo test`, we just use `cargo build` instead. Building on the non-release CI instead of just checking also allows us to make sure linking works properly before a release fails due to it.
2022-01-13Update time crate to 0.3.5James McCoy
Due to unsoundness issues (c.f., time-rs/time#380 and time-rs/time#293), determining the local timezone can only happen while single-threaded. Determine the timezone early in startup and apply the offset to the UTC timestamp before formatting.
2022-01-13Don't blink when cursor is hiddenKirill Chibisov
This prevents unnecessary redraws when the terminal is idle, cursor is hidden and blinking is enabled.
2022-01-13Fix use-after-free when formatting Wayland protocol errorKirill Chibisov
2022-01-13Fix block selection expansion with Ctrl + RMBKirill Chibisov
When 'ExpandSelection' binding was added only default binding for RightClick was added, however to expand block selection holding control when doing a click is required, so this commit adds a binding for 'RMB + Control'.
2022-01-08Alacritty version 0.10.0-rc2v0.10.0-rc2alacritty_terminal_v0.16.0-rc2Christian Duerr
2022-01-08Fix fullwidth char regex search infinite loopChristian Duerr
This resolves an issue where the regex search could loop indefinitely when the end point was defined in a location containing a fullwidth character, thus skipping over the end before termination. Fixes #5753.
2022-01-08Fix last column block selectiona5ob7r
This fixes a regression introduced in 8e584099, where block selections containing the last cell would have the trailing newline stripped and be joined into one long line on copy.
2022-01-08Fix macOS IME regressionDavid
Fixes 5669.
2022-01-08Fix title setting via IPC when dynamic_title is enabledKirill Chibisov
2022-01-08Use builtin font for box drawing unicode charactersKirill Chibisov
This commit adds hand rolled drawing of unicode box drawing[1] and block elements[2] from ranges U+2500 up to U+259f. While using system font for such characters will look better most of the time, the characters tend to overlap or not align, so providing builtin font is the lesser evil here. [1] - https://www.unicode.org/charts/PDF/U2500.pdf [2] - https://www.unicode.org/charts/PDF/U2580.pdf Fixes #5485.
2022-01-08Trim \n from hints/semantic-/simple selectiona5ob7r
Before this patch a hint regex ending in the last column would append a newline, despite this newline being "invisible" to the user. To match the expected behavior, newlines are trimmed from regex hint matches. To ensure consistency the simple and semantic selection also do not include a newline at the end of the copied text anymore. Fixes #5697.
2022-01-08Update wayland-client to v0.29.3Kirill Chibisov
This should bring support for latest wayland.xml. It also updates some other dependencies which are used by alacritty. Fixes #5743.
2022-01-08Add title/class CLI parameters to create-windowKirill Chibisov
This adds the ability to pass title and class over IPC via the create-window subcommand, so users can run only one instance for windows of different spurposes in the window managers of their choice.
2022-01-08Fix input lag with nvidia driver on WaylandKirill Chibisov
Fixes #5694.
2022-01-08Fix test failures due to CLI parametersChristian Duerr
Fixes #5717.
2021-12-25Alacritty version 0.10.0-rc1v0.10.0-rc1alacritty_terminal_v0.16.0-rc1Christian Duerr
2021-12-23Fix CreateNewWindow CLI fallbackChristian Duerr
The existing behavior for the new CreateNewWindow actions was to always pass in their own options, which would discard the existing options configured on the terminal's PTY config. To fix this the behavior for CreateNewWindow is now the same as for the initial window creation, the config values are overwritten conditionally based on their individual presence in the CLI options. However all temporary CLI options set on the "master" Alacritty instance are discarded by all future windows. Fixes #5659.
2021-12-19Remove shared PID/FD variablesChristian Duerr
The existing PID/FD atomics in alacritty_terminal/src/tty/unix.rs were shared across all Alacritty windows, causing problem with the new multiwindow feature. Instead of sharing these between the different windows, the master FD and shell PID are now stored on the `window_context`. Unfortunately this makes spawning new daemons a little more complicated, having to pass through additional parameters. To ease this a little bit the helper method `spawn_daemon` has been defined on the `ActionContext`, making it accessible from most parts of Alacritty's event loop. Fixes #5700.
2021-12-18Spawn children from foreground working directoryJorge Carrasco
To allow applications spawned by Alacritty to make use of the shell/foreground process' working directory, it is now set for all new processes spawned by Alacritty on Unix platforms. Fixes #5616. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-12-18Keep history position when viewport is cleareda5ob7r
This patch resolves a behavior that display area doesn't keep track of content in a scrollback buffer due to display offset reset when viewport clear is invoked. This is similar to #5341, but this problem is caused by viewport clear instead of new outputs to the viewport.
2021-12-18Remove trailing whitespace from block selectionjeremycostanzo
Fixes #5638.
2021-12-17Remove outdated Rust compatibility codefee1-dead
2021-12-11Update dependenciesChristian Duerr
This update includes crossfont 0.3.2, which updates the macOS font fallback behavior. Fixes #3271.
2021-12-03Fix vi cursor moving incorrectly with new outputa5ob7r
This fixes an issue where the vi cursor would move down one line if it's positioned at the topmost visible line, while at least partially scrolled up into history, when new lines are added to the terminal. This problem is caused by using a display offset of a grid not scrolled yet when scrolling and determining a new vi cursor position.
2021-12-03Fix crash when vi cursor in history during cleara5ob7r
Fixes #5544.
2021-12-03Bump glutin to 0.28.0Kirill Chibisov
Fixes #5603. Fixes #5422. Fixes #5350. Fixes #4105. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2021-11-22Add parameters to `msg create-window` subcommandKirill Chibisov
Alacritty's `msg create-window` subcommand would previously inherit all the CLI parameters from the original executable. However not only could this lead to unexpected behavior, it also prevents multi-window users from making use of parameters like `-e`, `--working-directory`, or `--hold`. This is solved by adding a JSON-based message format to the IPC socket messages which instructs the Alacritty server on which CLI parameters should be used to create the new window. Fixes #5562. Fixes #5561. Fixes #5560.
2021-11-19Switch to clap-generated completionsChristian Duerr
The current completions required a lot of domain-specific knowledge about each individual shell and their completion functionality. Much of which is sparsely documented. While clap does not generate perfect completions, since parameters like `-e` are missing completions, it does a reasonable job while requiring no work on writing these completions. Since access to `cli.rs` isn't possible from the `build.rs`, these completions aren't always generated on build. Instead a test verifies that there has been no changes to these completions and provides a simple code sample for re-generating them. This should provide a simple solution with minimal overhead.
2021-11-15Update signal-hook to 0.3.10James McCoy
2021-11-11Fix crash with empty post-processed matchesScott Freeman
Fixes #5492. Co-authored-by: Christian Duerr <contact@christianduerr.com>