aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src
AgeCommit message (Collapse)Author
2024-03-19Allow setting terminal env vars via PTY optionsKirill Bulatov
Closes #7778.
2024-03-19Fix hint `Select` action for hyperlink escapeChristian Duerr
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.
2024-03-19Set PTY's pixel size on startupKirill Chibisov
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.
2024-03-19Send exit code events on child process exitKirill Bulatov
Fixes #7753.
2024-03-19Expose more process info on WindowsSmall White
2024-03-19Fix log typoshuajin tong
2024-03-19Fix feature = "cargo-clippy" deprecationDimitris Apostolou
2024-03-19Fix regional scrolling leaking into historyChristian Duerr
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".
2024-03-19Fix row indexing with inclusive rangesAlexandru Placinta
2024-03-19Remove extra TIOCSWINSZ ioctl on startupKirill Chibisov
The openpty call already performs it, thus no need to call it one more with the exact same size since it confuses some applications.
2024-03-19Fix unnecessary explicit panic in PTY Conrad Irwin
Closes #7680.
2024-03-19Fix invalid bounds in selection range conversionMohammad AlSaleh
2024-03-19Fix inline search expanding across newlinesChristian Duerr
Closes #7587.
2024-01-06Fix serde tests without default featuresJames McCoy
2024-01-06Passthrough potential errors for `EventLoopSender`Hyper
2024-01-06Derive `Clone` for `EventLoopSender`Hyper
2023-12-06Implement kitty's keyboard protocolKirill Chibisov
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.
2023-11-29Fix DECRPM reportingKirill Chibisov
The DECRQM uses `p` to query, but the reply uses `y`. Fixes #7397.
2023-11-23Damage only terminal inside `alacritty_terminal`Kirill Chibisov
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.
2023-11-23Add support for DECRPM/DECRQMKirill Chibisov
2023-11-23Update VTE to 0.13.0Kirill Chibisov
2023-11-10Remove `alacritty_config` from alacritty_terminalKirill Chibisov
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.
2023-10-29Fix clippy warningsPavel Roskin
2023-10-25Fix typosPavel Roskin
2023-10-20Add inline vi mode searchChristian Duerr
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.
2023-10-11Use openpty-rustix instead of nixKirill Chibisov
Follow upstream libraries and use rustix to reduce the amount of dependencies in the future. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-10-09Fix regex patterns allowing for empty stringsChristian Duerr
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.
2023-10-08Fix regex matches ending on multilineChristian Duerr
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.
2023-10-08Fix PTY being closed on creationKirill Chibisov
The PTY got closed because `OwnedFd` automatically closed it. Fixes: 59c63d37 (Update dependencies)
2023-10-08Update dependenciesChristian Duerr
This patch applies all breaking and non-breaking dependency updates and bumps MSRV to 1.70.0.
2023-10-07Port from mio to pollingJohn Nunley
This patch replaces the mio crate with the polling. Now that smol-rs/polling#96 has been merged, we should be at full feature parity with mio v0.6 now. Fixes #7104. Fixes #6486.
2023-09-17Fix regex memory usageChristian Duerr
This fixes an issue where regexes with a large number of possible states would consume excessive memory, since the entire DFA was compiled ahead of time. To solve this, the DFA is now built at runtime using `regex-automata`'s hybrid DFA. There are however still some checks performed ahead of time, causing errors with obscenely large regexes (`[0-9A-Za-z]{999999999}`), which shouldn't cause any issues. A regex which is large, but not large enough to fail the NFA construction (like `[0-9A-Za-z]{999999}`) will cause a long search of the entire grid, but will complete and show the match. Closes #7097.
2023-08-31Fix crash with anchored searchesChristian Duerr
While this does **not** enable the use of anchors (`^`) in user regexes, it does prevent Alacritty from crashing when attempting to do so.
2023-08-27Update regex-automata to v0.3.6Christian Duerr
This seems like a sensible first step before looking into #7097.
2023-07-22Add `terminal` config section to control OSCs Kirill Chibisov
Some environments demand certain OSC sequences to be disabled or some escape sequence could require handling which is out of scope of alacritty, but could be done by external script (OSC 777). Added section for now just handles the `OSC 52` sequence and changes its default to be `OnlyCopy`, which is handy for remote copy, but `Paste` is redundant because normal `Paste` hotkey could be used as well. Fixes #3386. Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-07-18Remove unnecessary mutable referencesPavel Roskin
2023-07-16Mention all the actions in the man pageKirill Chibisov
A lot of actions were left without a notice, so the only way to figure out some of them was to browse source code. An example of such actions were `Maximize` and `Minimize`, since we don't have a binding for them, so they were left even in alacritty-bindings(5). Explicitly list all the bindings we have. The search bindings were also not accurately restricted, since we allow them to be executed inside regardless of mode.
2023-07-13Unset `XDG_ACTIVATION_TOKEN` in alacritty_terminalKirill Chibisov
This variable is what being used for Wayland's activation stuff.
2023-06-26Update wix on the release CIKirill Chibisov
Fixes #6939.
2023-06-19Add support for loading conpty.dllPavel Roskin
Co-Authored-By: @fredizzimo Co-Authored-By: @grueslayer
2023-06-17Fix the crash when shrinking scrolled terminalKirill Chibisov
display_offset was adjusted unconditionally, thus it could go beyound the history limits, so clamp it to history like we do in grow_colums. Fixes #6862.
2023-06-17Add errors for deserializing with unknown fieldsChristian Duerr
Currently there are still some places where `Deserialize` is used rather than `ConfigDeserialize`, which means that the built-in warning for unused fields is not emitted automatically. To ensure users don't have invalid configurations, the `#[serde(deny_unknown_fields)]` annotation has been added to these structs, making it a hard error when an unknown field is present.
2023-06-15Fix `alacritty msg config` toml replacementChristian Duerr
This fixes a regression introduced in bd49067 which broke the override of configuration file variables using `alacritty msg config`. To fix this the `replace` functionality was rewritten to behave more like the `serde_utils::merge` where entire values are inserted into the existing structure rather than separating the keys from the values. Fixes: bd49067 (Switch to TOML configuration format)
2023-06-12Switch to TOML configuration formatChristian Duerr
This switches Alacritty's default configuration format from yaml to toml. While yaml is still supported, it is done by converting it to toml and should be removed entirely in the future. All existing features were persisted based on my testing. Behavior should not change much, though `--option` might have slightly different behavior since the entire line is not interpreted as one line of toml. A new `alacritty migrate` subcommand has been added which allows automatic migration from yaml to toml. This also could be used as a facility to automatically fix configuration file changes in the future. Closes #6592.
2023-06-11Bump dependenciesPavel Roskin
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-05-23Switch to VTE's built-in ansi featureAnhad Singh
Co-authored-by: Christian Duerr <contact@christianduerr.com>
2023-05-17Update xdg and dirs crateKirill Chibisov
The recent version on xdg crate moved to home crate which is used by cargo. Thus to query for home directory we can use the home dependency instead which is smaller.
2023-05-17Update bitflags to 2.2.1Kirill Chibisov
2023-03-24Fix selection rotation on the last lineChristian Duerr
This fixes an issue with terminal resizes when the selection is on the last line. Alacritty would fail to rotate lines and keep the selection in the same line index whenever the terminal line count was grown or shrunk. This issue occurred due to the range passed to the selection's rotate function still being based on the old terminal size, which caused the initial or target state of the rotation to be outside of the terminal bounds. Closes #6698.
2023-03-19Fix `;` character in URI OSC 8 payloadKirill Chibisov
The special character `;` can be not URL-encoded, thus it'll add extra parameter in the payload. Handle it joining extra parameters with the `;` as a separator.