summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src
AgeCommit message (Collapse)Author
2020-01-04Update outdated reftestsKirill Chibisov
2020-01-02Clean up Windows PTY string handlingDavid Hewitt
Removes widestring and dunce dependencies, reduces some code duplication and corrects a few typos.
2019-12-31Remove C1 escape supportChristian Duerr
Fixes #2981.
2019-12-29Remove outdated information from READMEKirill Chibisov
2019-12-24Fix screen reset not clearing cell flagsChristian Duerr
2019-12-22Fix crash on clear when scrolled up in historyKirill Chibisov
Fixes #3112.
2019-12-22Remove unneeded NamedPipe::connect() callsDavid Hewitt
In the way the code was set up, these calls would always do nothing and return io::ErrorKind::WouldBlock, so they can be safely removed.
2019-12-21Default to ConPTY instead of WinPTYDavid Hewitt
2019-12-21Fix Windows CI build failureChristian Duerr
2019-12-15Add conpty dynamic loading restrictions docssterlingjensen
2019-12-14Send PTY resize messages through event loopDavid Hewitt
This allows us to clean up the Arcs on windows, as well as tidy up the code on unix a little too. Fixes #3086.
2019-12-13Fix storage rotation errorChristian Duerr
This fixes a regression introduced in e99057b179cbdc0851c36575dd043fcdaa45437a, which used `self.len` to calculate the remainder of `self.zero` during rotation instead of `self.inner.len()`, leading to a broken `self.zero` offset and incorrect rotation.
2019-12-12Fix crash when resizing AlacrittyChristian Duerr
Fixes #3088.
2019-12-12Fix deadlock when closing on Windows using ConptyDavid Hewitt
Fixes #3042.
2019-12-10Fix colored row reset performanceChristian Duerr
This fixes a bug where a row would always get reset completely if its background does not equal the default terminal background. This leads to big performance bottlenecks when running commands like `echo "\e[41m" && yes`. Instead of resetting the entire row whenever the template cell is not empty, the template cell is now compared to the last cell in the row. The last cell will always be equal to the previous template cell when `row.occ < row.inner.len()` and if `occ` is equal to the row's length, the entire row is always reset anyways. Fixes #2989.
2019-12-05Remove unnecessary lifetimes from winptysterlingjensen
2019-11-28Fix `OSC 52` with empty clipboard paramChristian Duerr
This fixes the behavior of the clipboard escape (`OSC 52`) when the second parameter is not specified. If it is missing, the parameter is now assumed to be `c`, defaulting to the default clipboard. This has been fixed both for writing and reading. Fixes #3037.
2019-11-23Move renderer from alacritty_terminal to alacrittyKirill Chibisov
2019-11-19Remove tests failing in release modeChristian Duerr
2019-11-18Fix deletion of lines when clearing the screenNathan Lilienthal
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-17Fix ESC escapes not ignoring invalid intermediatesKirill Chibisov
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-17Fix cell reset not clearing flags and foregroundKirill Chibisov
Fixes #2330.
2019-11-16Fix WinPTY freeze on terminationMaciej Makowski
Fixes #2889.
2019-11-15Fix `CSI Ps M` deleting lines above cursorChristian Duerr
Fixes #2984.
2019-11-14Fix division by zero without any cols or linesBurak Yigit Kaya
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-12Fix mouse modes not being mutually exclusiveKirill Chibisov
2019-11-11Add escape for reading clipboardChristian Duerr
2019-11-04Add UTF-8 mouse mode supportKirill Chibisov
Fixes #1934.
2019-11-04Fix incorrect cell foreground when clearing screenChristian Duerr
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-03Fix URL highlightingChristian Duerr
Fixes #2898. Fixes #2479.
2019-11-02Fix clippy warningsChristian Duerr
2019-10-26Fix visual bell rendering modeKirill Chibisov
Fixes #2911.
2019-10-23Update dependenciesKirill Chibisov
2019-10-20Fix XEmbed compilation error on 32-bit platformscyclopsian
2019-10-17Fix window title not filled by defaultDustin
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-15Print launch command name on failureChristian Duerr
2019-10-15Add support for alternate scroll escapeAleksey Kuznetsov
Fixes #2727.
2019-10-14Add support for title stack escape sequencesDustin
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-09Add --hold CLI flagValentin Ignatev
This implements --hold flag which keeps Alacritty open after its child process exits. Fixes #1165.
2019-10-06Remove automatic config generationKirill Chibisov
Fixes #2818.
2019-10-05Update to winit/glutin EventLoop 2.0Christian Duerr
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-02Add live config reload for font sizewayne
2019-09-28Concatenate parameters of title OSCPaolo Capriotti
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-28Add `ReceiveChar` action for passing key's textzsugabubus
2019-09-26Fix selection not inverting terminal backgroundChristian Duerr
Fixes a regression introduced in 9a0555bbba30c264f617ec9260ca00e0eab70870 where the terminal background would not get inverted when selected.
2019-09-26Fix cell opacity when color matches terminal bgKirill Chibisov
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-26Fix overflow on wrong scroll region settingKirill Chibisov
Fixes #2822.
2019-09-24Add Xembed supportmkosem
Fixes #631.
2019-09-21Remove outdated TODO/FIXME commentsChristian Duerr
2019-09-19Initialize only visible charactersChristian Duerr
This fixes an off-by-two error in the renderer which initializes characters 32 until 128 (inclusive) for each font whenever it is loaded. The ascii visible range however just goes from 32 until 126 (inclusive).