summaryrefslogtreecommitdiff
path: root/alacritty_terminal/src
AgeCommit message (Collapse)Author
2020-06-05Fix class and cursor thickness deserializationKirill Chibisov
Fixes #3820.
2020-06-05Refactor Shell, Command, and Launcher to share implKirill Chibisov
2020-06-02Add cargo feature for WinPTYDavid Hewitt
2020-05-30Refactor Term/Grid separationChristian Duerr
This commit aims to clear up the separation between Term and Grid to make way for implementing search. The `cursor` and `cursor_save` have been moved to the grid, since they're always bound to their specific grid and this makes updating easier. Since the selection is independent of the active grid, it has been moved to the `Term`.
2020-05-27Set IUTF8 input setting on supported platformsKirill Chibisov
Fixes #3769.
2020-05-17Fix crash when writing wide char in last columnChristian Duerr
This resolves an issue where trying to write a fullwidth character in the last column would crash Alacritty, if linewrapping was disabled. Instead of assuming that the linewrap put after the linewrapping spacer was successful, the character writing is now skipped completely when trying to put a wide character in the last column.
2020-05-16Change default color scheme to 'Tomorrow Night'Alexey Chernyshov
Fixes #3404.
2020-05-05Extend style guideline documentationChristian Duerr
2020-05-01Fix clippy warningsMatthias Krüger
2020-04-30Fix startup locale on macOSCasper Rogild Storm
Fixes #2800. Fixes #2566.
2020-04-20Clear selection on grid swapRémi Garde
Fixes #3290.
2020-04-15Add config option to set cursor thicknessKirill Chibisov
Fixes #3526.
2020-04-09Use config colors to theme Wayland decorationsKirill Chibisov
Fixes #2092.
2020-03-30Fix tabstops not being reset with 'reset'Kirill Chibisov
2020-03-26Remove `fs::read_to_string` reimplementationsChristian Duerr
After two previous PRs already removed some instances of reimplementations of the `fs::read_to_string` functionality, this removes the last remaining occurence and with it all instances of `File::open`. So this should remove them all for good.
2020-03-24Fix cursor position after alt screen resizeChristian Duerr
This fixes a regression introduced in 4cc6421, which ignored the main grid's cursor when increasing the number of lines available, causing incorrect cursor position after restoring to the primary screen. Additionally another similar bug has been fixed where the grid was not scrolled correctly when shrinking while in the alternate screen. When the grid is resized multiple lines at once, there was also an issue with Alacritty either pulling all lines from history or none at all, instead of mixing both approaches and pulling just what is required. This lead to incorrect cursor positions when the resize could partially make use of history. Fixes #3499.
2020-03-21Fix invisible selectionChristian Duerr
This resolves a bug where the very first/last cell would still be selected when both the start and the end were below/above the viewport.
2020-03-18Add modal keyboard motion modeChristian Duerr
This implements a basic mode for navigating inside of Alacritty's history with keyboard bindings. They're bound by default to vi's motion shortcuts but are fully customizable. Since this relies on key bindings only single key bindings are currently supported (so no `ge`, or repetition). Other than navigating the history and moving the viewport, this mode should enable making use of all available selection modes to copy content to the clipboard and launch URLs below the cursor. This also changes the rendering of the block cursor at the side of selections, since previously it could be inverted to be completely invisible. Since that would have caused some troubles with this keyboard selection mode, the block cursor now is no longer inverted when it is at the edges of a selection. Fixes #262.
2020-03-14Fix live config reload for window titleChristian Duerr
This enables live config reload for the window title. This includes updating the title after it has been pushed and popped from the title stack. The dynamic title option also isn't disabled automatically anymore when the title is set in the config. If the title is set from CLI, the behavior is unchanged and dynamic title changes are still disabled. If the dynamic title is disabled in the config, the title is still updated when the config title is changed. Dynamic title now only prevents changes to the UI's title.
2020-03-13Add option to pick Linux/BSD backendsKirill Chibisov
This commit adds two cargo features `x11` and `wayland` to pick Linux/BSD backends, with both enabled by default. Fixes #3340.
2020-03-12Fix crash when selecting last columnChristian Duerr
This resolves a bug where the selection start would be set to the number of columns, causing an out of bounds when trying to index with it. Instead of extending the selection beyond the grid when the right side of the last column is the start of the selection, the selection will now start in the beginning of the next line. Fixes #3446.
2020-03-07Fix selection with invisible start and endChristian Duerr
This resolves an issue with the selection clamping, where no selection would be rendered at all when the start was above the viewport while the end was below it.
2020-03-04Remove `ref_test` option from configuration fileChristian Duerr
This removes the `debug.ref_test` option from the configuration file, after this change was originally requested from kchibisov in https://github.com/alacritty/alacritty/pull/3396. While this option is valueable for the CLI, it provides no value in the configuration file.
2020-03-02Remove HollowBlock/Hidden config cursor stylesRémi Garde
Fixes #3367.
2020-03-01Remove `tabspaces` config optionChristian Duerr
This completely removes the tabspaces option from the Alacritty configuration, due to frequent misuse of it. Based on some research, none of the terminal emulators support setting the value for tabspaces or read the terminfo to determine init_tabs value at startup. The tested terminal emulators were URxvt, XTerm, and Termite.
2020-03-01Fix tabs across linewrapChristian Duerr
This resolves an issue with tabs not breaking across line boundaries, instead the characters would just all get written to the last column and thus be lost. It also tweaks the behavior of what happens when the terminal resizes with the default tabspaces changed, using something like the `tabs` program. Previously all tabstops would be reset to the default on resize, which is what URxvt does. Now the tabspaces are kept and the new columns are filled with the default tabstops, which emulates Termite.
2020-02-28Fix log target of color config errorsKirill Chibisov
Due to incorrect log target in the color config errors, the message bar was not cleared when the error was fixed.
2020-02-27Remove docs for 0xRRGGBB color notationChristian Duerr
2020-02-23Fix config reload updating incorrect gridChristian Duerr
2020-02-22Fix block selection including last columnChristian Duerr
The block selection will now only insert extra newline characters after each line if the last line isn't already included. This resolves an issue with duplicate newlines, since newlines are automatically appended when the last column is part of a selection. Fixes #3304.
2020-02-15Fix parser stopping at unknown modesChristian Duerr
This resolves an issue in the parser where it would stop as soon as the first unknown value is encountered in private mode/sgr attribute escapes. Fixes #3339.
2020-02-12Fix incorrect display offset after rotationKirill Chibisov
Regression was introduced in 4cc6421daa4ff5976ab43c67110a7a80a36541e5, however it was working before only due to grid.len() bug.
2020-02-11Bump vte and urlocatorChristian Duerr
Fixes #3247.
2020-02-10Revert "Fix backspace deleting chars when IME is open"Christian Duerr
This reverts commit 7f4dce2ee04859fb0b48f15cf808b60065778703. Originally it was assumed that macOS always sends the \x7f on backspace anyways, however this is not true. It seems like the character on backspace can change even within the same terminal session, so we need to have our own binding to reliably set the correct binding. A solution for #1606 should be implemented in cooperation with winit.
2020-02-07Fix selection expansion across full-width glyphsChristian Duerr
Instead of trying to expand the start and end of a selection across full-width glyphs, the selection should now only go from its origin to the end without any kind of expansion. Instead, the expansion is now done where the cells are actually checked for their selection status, expanding across the entire full-width glyph whenever any part of it is selected. Fixes #3106.
2020-01-31Mirror OSC query terminatorChristian Duerr
Fixes #3091.
2020-01-28Fix inconsistent test module namingChristian Duerr
2020-01-26Fix incorrect grid.len() and grid.history_size()Kirill Chibisov
2020-01-24Fix selection rotating outside of scrolling regionChristian Duerr
Fixes #2983.
2020-01-21Fix oob error during selectionKirill Chibisov
Fixes #3233.
2020-01-21Fix first cell when selection is off screenChristian Duerr
Since the expansion of the selection was done after clamping it to the grid, the selection would incorrectly move the clamped start over by one cell when the start was to the right of the original column. By resetting the side of the start point to `Left` before expanding, this can be circumvented. This also resolves a regression which broke backwards bracket selection. Fixes #3223.
2020-01-20Disable drawing bold text bright by defaultKirill Chibisov
Since the assumption is usually that bold text is drawn in bright colors, this might break some applications. However some other terminals have already taken this leap, which should lessen the impact for Alacritty. Since this might still be desired and necessary for certain applications, the config option is just switched to draw with normal colors by default, however the old behavior can still be restored. Fixes #2779.
2020-01-20Remove scrolling.auto_scroll featureKirill Chibisov
Fixes: #1873
2020-01-15Expand line selection across wrapped linesChristian Duerr
2020-01-15Remove Windows working directory canonicalizationDavid Hewitt
Fixes #3198.
2020-01-12Bump VTE to 0.5.0Christian Duerr
This change includes dynamic escape buffer support in VTE, which allows us to have arbitrary escape sizes. Since tmux could potentially use very long escapes for the clipboard escape, this allows copying more text. Fixes #1002.
2020-01-12Fix crash with invalid working directoryChristian Duerr
2020-01-11Move Alacritty to organizationChristian Duerr
This fixes various outdated links pointing to the old jwilm/alacritty repository. Since `copypasta` now has its own github repository at https://github.com/alacritty/copypasta, the sources have been removed from Alacritty.
2020-01-10Bump glutin to 0.22.0Christian Duerr
Fixes #3165.
2020-01-09Fix cut off full width glyphs in last columnChristian Duerr
This resolves the issue with full width glyphs getting rendered in the last column. Since they need at least two glyphs, it is not possible to properly render them in the last column. Instead of rendering half of the glyph in the last column, with the other half cut off, an additional spacer is now inserted before the wide glyph. This means that the specific glyph in question is then three cells wide. Fixes #2385.