aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src
Commit message (Collapse)AuthorAge
* Add alacritty extension script support.HEADrahmJosh Rahm2025-02-06
| | | | | | | | | This allows an escape code to invoke user-defined extensions found in /home/rahm/.local/bin/alacritty-ext.sh. The terminal passes to this script the escape-code arguments. This allows things like opening links in the browser even through an ssh connection.
* Add option to drain PTY on shutdownAndrew Borg (Kashin)2025-01-16
| | | | | This patch removes the `hold` option on `alacritty_terminal` in favor of a `drain_on_exit` option, which will drain the PTY before shutdown. The hold logic is instead handled in `alacritty`.
* Bump VTE to 0.14.0Christian Duerr2025-01-09
| | | | Since this is a breaking change, it also bumps the alacritty_terminal development version to 0.25.0-dev.
* Add CSI Ps I supportKirill Chibisov2024-12-28
| | | The implementation is the same as CSI Ps Z, but forward.
* Fix vi motion with wide semantic escape charsChristian Duerr2024-11-22
| | | | | | | This patch fixes an issue where the semantic vi motion commands `SemanticRight` and `SemanticLeft` were not behaving as expected when a fullwidth character was used as a semantic character. Closes #8314.
* Bump all dependenciesChristian Duerr2024-11-02
| | | | | This patch applies all major and minor version bumps, with the exception of `unicode-width` since it will need to be handled separately for Unicode version 16.
* Fix racing condition in hint triggeringChristian Duerr2024-11-02
| | | | | | | | | | | This fixes an issue with hints where it was possible that the terminal content of highlighted hints changed between the highlighted hint update and the activation of the hint. This patch always validates the hint's text content against the hint itself to ensure that the content is still valid for the original hint which triggered the highlight. Closes #8277.
* Fix highlight invalidation on grid scrollChristian Duerr2024-10-07
| | | | | | | | | | | | | | | This fixes an issue where hints highlighted by vi or mouse cursor would produce an underline on the incorrect line since the highlights only store the initial match boundaries without accounting for new content scrolling the terminal. To accurately invalidate the hint highlights, we use existing damage information of the current frame. The existing logic to damage hints for the next frame to account for removal has been changed, since the hints would otherwise be cleared immediately. Instead we now mark the terminal as fully damaged for the upcoming frame whenever the hints are cleared. Closes #7737.
* Remove unused `Clone` requirementsChristian Duerr2024-10-07
|
* Remove startup notify variables only for shellKirill Chibisov2024-10-03
| | | | | | This will prevent issues when `setup_env` from `alacritty_terminal` will remove potentially useful variables for users of the library. Fixes #8202.
* Move root config fields to `[general]` sectionChristian Duerr2024-10-02
| | | | | | | | | | | Some users struggle with TOML, since root options must always be at the top of the file, since they're otherwise associated with the last table. To avoid misunderstandings, all root-level fields have been removed. A new `general` section was added to allow housing configuration options that do not fit into any more specific groups. Closes #7906.
* Fix fullwidth semantic escape charactersChristian Duerr2024-09-22
| | | | | | | | | | Semantic escape characters occupying two two grid cells were always skipped over, making it impossible to have functional fullwidth characters as part of semantic escape characters. This patch fixes this by only skipping over fullwidth spacer cells, rather than skipping those cells entirely. Closes #8188.
* Improve TermMode bitflags initializationDimitri Sabadie2024-09-07
|
* Make `ConPty` creation fallible张小白2024-08-16
|
* Fix search bug with wrapline on first characterChristian Duerr2024-07-05
| | | | | | | | This fixes an issue where an inline search in the left direction would incorrectly assume that the first cell searched would not contain the `WRAPLINE` flag, causing the second search for the match end to terminate prematurely. Fixes #8060.
* Fix spelling errorsJosh Soref2024-05-24
|
* Fix IO safety violation from consequent dropping `OwnedFd`Jakob Hellermann2024-05-23
| | | | This was not a _real_ violation and was _expected_, though for rust to not complain clone FD properly...
* Fix FD leak after closing child windowsChristian Duerr2024-05-22
| | | | | | | | This patch fixes an issue with signal handling where Alacritty would permanently create one signal handling FD for each alacritty window created by an instance. This FD was never released, causing a leak of the FD. Closes #7983.
* Ignore shell RCs for macOS zsh wrapperNathan Lilienthal2024-05-15
| | | Closes #7886.
* Add `from_file_descriptors()` to `tty::unix`Owen Law2024-05-01
|
* Fix window being focused by defaultKirill Chibisov2024-04-18
| | | | | | | | | Winit explicitly states that the window is not focused by default and the `Focused` event will deliver the state later on. Also start adding notable changes to alacritty_terminal in its own CHANGELOG. Closes #7866.
* Allow setting terminal env vars via PTY optionsKirill Bulatov2024-03-18
| | | Closes #7778.
* Fix hint `Select` action for hyperlink escapeChristian Duerr2024-03-12
| | | | | | | | | | | | This fixes an issue where the `Select` action for hyperlink escape text would select the entire line, instead of selecting only the hyperlink itself. It also changes the way hyperlinks with the same ID are highlighted, removing the restriction of being on consecutive lines and instead highlighting all visible cells that correspond to the matching hyperlink. Closes #7766.
* Set PTY's pixel size on startupKirill Chibisov2024-03-09
| | | | | 117719b3 removed the extra call for TIOCSWINSZ, however the initial `openpty` call itself did not set the pixel size, which caused issues with some clients.
* Send exit code events on child process exitKirill Bulatov2024-03-09
| | | | Fixes #7753.
* Expose more process info on WindowsSmall White2024-03-07
|
* Fix log typoshuajin tong2024-03-06
|
* Fix feature = "cargo-clippy" deprecationDimitris Apostolou2024-02-28
|
* Fix regional scrolling leaking into historyChristian Duerr2024-02-14
| | | | | This fixes an issue where a scrolling region that does not start at the top of the screen would still rotate lines into history when scrolling the content "upwards".
* Fix row indexing with inclusive rangesAlexandru Placinta2024-02-11
|
* Remove extra TIOCSWINSZ ioctl on startupKirill Chibisov2024-02-08
| | | | The openpty call already performs it, thus no need to call it one more with the exact same size since it confuses some applications.
* Fix unnecessary explicit panic in PTY Conrad Irwin2024-02-02
| | | Closes #7680.
* Fix invalid bounds in selection range conversionMohammad AlSaleh2024-01-27
|
* Fix inline search expanding across newlinesChristian Duerr2024-01-14
| | | Closes #7587.
* Fix serde tests without default featuresChristian Duerr2024-01-06
| | | Authored-by: James McCoy <jamessan@jamessan.com>
* Passthrough potential errors for `EventLoopSender`Hyper2023-12-30
|
* Derive `Clone` for `EventLoopSender`Hyper2023-12-28
|
* Implement kitty's keyboard protocolKirill Chibisov2023-12-06
| | | | | | | | The protocol enables robust key reporting for the applications, so they could bind more keys and the user won't have collisions with the normal control keys. Links: https://sw.kovidgoyal.net/kitty/keyboard-protocol Fixes #6378.
* Fix DECRPM reportingKirill Chibisov2023-11-29
| | | | | The DECRQM uses `p` to query, but the reply uses `y`. Fixes #7397.
* Damage only terminal inside `alacritty_terminal`Kirill Chibisov2023-11-23
| | | | | | | | | | | | The damage tracking was including selection and vi_cursor which were rendering viewport related, however all the damage tracking inside the `alacritty_terminal` was _terminal viewport_ related, meaning that it should be affected by `display_offset`. Refactor the damage tracking so `alacritty_terminal` is only tracking actual terminal updates and properly applying display offset to them, while `alacritty` pulls this damage into its own UI damage state. Fixes #7111.
* Add support for DECRPM/DECRQMKirill Chibisov2023-11-23
|
* Update VTE to 0.13.0Kirill Chibisov2023-11-23
|
* Remove `alacritty_config` from alacritty_terminalKirill Chibisov2023-11-10
| | | | | There's no need to force alacritty's user configuration on other users of the crate, thus provide the options actually used by alacritty_terminal itself.
* Fix clippy warningsPavel Roskin2023-10-29
|
* Fix typosPavel Roskin2023-10-25
|
* Add inline vi mode searchChristian Duerr2023-10-20
| | | | | | This patch adds inline search to vi mode using `f`/`F` and `t`/`T` as default bindings. The behavior matches that of vim. Fixes #7203.
* Use openpty-rustix instead of nixKirill Chibisov2023-10-11
| | | | | | Follow upstream libraries and use rustix to reduce the amount of dependencies in the future. Co-authored-by: Christian Duerr <contact@christianduerr.com>
* Fix regex patterns allowing for empty stringsChristian Duerr2023-10-09
| | | | | | | | | | | This patch changes the mode we search for patterns which allow an empty string, by anchoring all searches. As a result we will match the longest possible match when multiple patterns are present (like `;*|rust`), instead of using the leftmost pattern only. This is only possible with empty matches since our parser is reset on every byte anyway, so anchoring the search makes no difference. Fixes #7276.
* Fix regex matches ending on multilineChristian Duerr2023-10-08
| | | | | | | | | | This fixes an issue where the reverse search for the regex start would truncate a character when ending on a newline, since it was omitting the EOI check in that case. This also fixes a separate issue which caused regexes which capture empty strings (e.g.: `.*`) to always report a match. This is a regression introduced in 73276b6.
* Fix PTY being closed on creationKirill Chibisov2023-10-08
| | | | | The PTY got closed because `OwnedFd` automatically closed it. Fixes: 59c63d37 (Update dependencies)