aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Reset blinking on search bindings in Vi modeKirill Chibisov2022-03-25
| | | | | | The Vi cursor is used as the current match indicator, however when it's blinking during search jumps the current match is invisible. Fixes #5934.
* Persist OpenGL context creation flagsKirill Chibisov2022-03-24
| | | | | | | | | | | | | This commit persists OpenGL context creation flags from previous window build attempts saving time in multiwindow context. It also creates window as srgb by default, since it's what Alacritty is rendering in. For reference [1] and [2]. Moreover the fallback for 10 bit colors is also added. [1] - https://github.com/alacritty/alacritty/issues/4939 and [2] - https://github.com/alacritty/alacritty/issues/3756. Fixes #4703.
* Add colored underline supportKirill Chibisov2022-03-16
| | | | | | | | | This commit adds support for colored underline and refines the dynamic extra storage. The extra storage now is using `Arc` making cloning it way faster compared to `Box` approach which scales really well when it comes to cloning in `Term::write_at_cursor`, since cloning `Arc` is constant time. Fixes #4142.
* Use center of the pixel when aligning undercurlKirill Chibisov2022-03-14
| | | | Since `x` position in rect shader represents left side of the pixel we should use the center of it when dealing with contiguous functions.
* Fix `font.glyph_offset` not live reloadingKirill Chibisov2022-03-11
| | | Fixes #5944.
* Fix crash when searching during resetChristian Duerr2022-03-10
| | | | | | | | | | | | | | | | | | This fixes a crash which occurs when the terminal is reset while searching, due to the vi mode cursor being outside of the visible area. This also fixes an issue where the search state reset would incorrectly clamp the vi mode cursor to the grid, rather than the absolute viewport position. While this fix does resolve all crashes when searching while running `cat /dev/urandom`, it does raise the question if manually clamping the vi mode cursor in every location where it is modified is the right choice. A follow-up to provide a safer API which guarantees correct modification of the vi mode cursor location is probably a good idea. Fixes #5942.
* Fix line indicator damage computationKirill Chibisov2022-03-10
| | | | The starting point of damage should be computed from the right side of the terminal, not from the starting point of line indicator.
* Use round instead of ceil for line positionKirill Chibisov2022-03-06
| | | | Ceiling line position results in strikeout line being lower than it should.
* Fix gap calculation for dashed underlineKirill Chibisov2022-03-02
|
* Add fallback GLES2 rendererKirill Chibisov2022-03-02
| | | | | | | | | | | | | | | | | | | | | Currently Alacritty only works on hardware which supports OpenGL 3.3 or more, which can become problematic with older devices. This patch adds a new GLES2 renderer, since it is much more widely supported, especially on weaker hardware like phones or a Raspberry Pi. While the GLES2 renderer is slower than the OpenGL 3.3+ version, it is still significantly faster than software rendering. However because of this performance difference it is only used when necessary and there should be no difference for machines supporting OpenGL 3.3+. The two renderers are largely independent and separated in the `renderer/text/glsl3` and `renderer/text/gles2` modules. Separate shaders are also required for text rendering. The rectangle rendering for underlines and the visual bell works identically for both versions, but does have some version-specific shader code. Fixes #128. Co-authored-by: Christian Duerr <contact@christianduerr.com>
* Add `ToggleMaximized` key binding actionChris Copeland2022-02-27
|
* Add version 0.10.1 to changelogChristian Duerr2022-02-24
|
* Omit git version hash when git command failsnibon72022-02-22
|
* Don't use 'origin_upper_left' in rect shadersKirill Chibisov2022-02-22
|
* Don't load font twice during display creationKirill Chibisov2022-02-18
| | | | | This commit finishes the effort from a64553b to avoid reloading font twice during startup, since the original issue is with getting font metrics without building the glyph cache.
* Account for absolute WAYLAND_DISPLAY pathsmahkoh2022-02-16
| | | | If WAYLAND_DISPLAY contains a '/', we have to replace with with another character before using WAYLAND_DISPLAY as a path component.
* Reuse Rasterizer in Display::newGreg Depoire--Ferrer2022-02-16
| | | | | | | Instead of creating a `Rasterizer` to guess the window dimensions, dropping it and then creating a new one for the glyph cache, reuse the same `Rasterizer`. This prevents the font from being loaded twice during startup.
* Add support for dashed and dotted underlinesKirill Chibisov2022-02-14
| | | | This finishes implementation of underline styles provided by `CSI 4 : [1-5] m` escape sequence.
* Clear damage rects right after drawingKirill Chibisov2022-02-11
| | | | Since we could queue damage before we get into the actual rendering we should clear it after drawing not before.
* Fix terminal not being damage when only font size changedKirill Chibisov2022-02-10
| | | | | If font size changes however the cells stay the same the terminal won't be damaged, since it wasn't resized, however the visual change happened, thus the entire screen should be damaged.
* Make undercurls thickness close to underlinesKirill Chibisov2022-02-10
| | | Fixes #5873.
* Add note about publishing RCs to crates.ioChristian Duerr2022-02-10
| | | | | We've been testing out the pre-release feature of crates.io and there haven't been any major issues. So this updates the documentation to recommend publishing to crates.io even before the official release.
* Add version to info logChristian Duerr2022-02-09
|
* Fix warnings when building only with Wayland featureKirill Chibisov2022-02-09
| | | | This commit also makes our CI fail hard when warning encountered when building only for either Wayland or X11.
* Fix alpha when using `colors.transparent_background_colors`Kirill Chibisov2022-02-09
| | | | The alpha is expected to be premultiplied from the text shader, so we should apply it to the background color.
* Add support for drawing undercurlsKirill Chibisov2022-02-08
| | | Fixes #1628.
* Add instructions for building without X11/Waylandsckzor2022-02-08
|
* Fix alacritty_terminal not emitting damage on color changeKirill Chibisov2022-02-07
|
* Fix renderable_cursor method documentationThomas Churchman2022-02-03
| | | | | This method no longer returns an `Option` since #5773. Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
* Fix builtin font block elements going invisibleKirill Chibisov2022-02-03
|
* Fix repeated permission requests on M1 macsChristian Duerr2022-02-02
| | | | | | | | | | | 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.
* Fix terminal damage after leaving Vi modeKirill Chibisov2022-02-02
| | | | This fixes an issue when search results were not damaged when leaving Vi mode.
* Add damage tracking and reporting to compatible compositorsKirill Chibisov2022-02-02
| | | | | | | | | | | | | | This allows compositors to only process damaged (that is, updated) regions of our window buffer, which for larger window sizes (think 4k) should significantly reduce compositing workload under compositors that support/honor it, which is good for performance, battery life and lower latency over remote connections like VNC. On Wayland, clients are expected to always report correct damage, so this makes us a good citizen there. It can also aid remote desktop (waypipe, rdp, vnc, ...) and other types of screencopy by having damage bubble up correctly. Fixes #3186.
* Clean up and abstract shader creation codeoxalica2022-01-30
| | | Co-authored-by: Christian Duerr <contact@christianduerr.com>
* Use cell width to compute builtin font thicknessKirill Chibisov2022-01-30
| | | | | | | | | | | 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.
* Log used display server on Linux/BSDKirill Chibisov2022-01-30
| | | This also fixes a bug where the welcome log message wasn't logged.
* Account for font.offset and glyph.offset in built-in fontKirill Chibisov2022-01-29
| | | | This commit takes into account `font.offset` and `font.glyph_offset` when generating built-in font.
* Add option to control built-in box drawing charszandr2022-01-29
| | | | | This commit adds the config `font.builtin_box_drawing` option to control built-in font, which is enabled by default.
* Remove outdated changelog URLsChristian Duerr2022-01-23
| | | | | Alacritty's website (https://alacritty.org) is now advertised publicly on the GitHub page. Since that includes the old 0.3.0 and 0.5.0 changelogs, it's not necessary to point them out separately anymore.
* Fix logfile overwriting existing filesChristian Duerr2022-01-22
|
* Fix typo in SizeInfo padding_y rustdocÖmer Sinan Ağacan2022-01-21
|
* Reset cursor blinking on ToggleViModeKirill Chibisov2022-01-21
| | | Fixes #4468.
* Fix OSC 104 with empty second parameterDaftMouse2022-01-20
| | | | | | 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.
* Add ´?´ support to OSC 4DaftMouse2022-01-15
|
* Remove time dependencyChristian Duerr2022-01-13
| | | | | | | | | | | | | | | | 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.
* Fix macOS release CIChristian Duerr2022-01-13
| | | | | | | | 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.
* Update time crate to 0.3.5James McCoy2022-01-13
| | | | | | | 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.
* Don't blink when cursor is hiddenKirill Chibisov2022-01-11
| | | | This prevents unnecessary redraws when the terminal is idle, cursor is hidden and blinking is enabled.
* Use `with_position` instead of `set_outer_position`Kirill Chibisov2022-01-11
| | | | This uses `with_position` method on a `WindowBuilder` instead of setting window position on the created window later on.
* Fix use-after-free when formatting Wayland protocol errorKirill Chibisov2022-01-11
|