| Commit message (Collapse) | Author | Age |
| ... | |
| | |
| |
| |
| | |
This ensures that the generated completions properly suggest file paths
for arguments which accept them.
|
| | | |
|
| | |
| |
| |
| |
| | |
This also fixes an issue of windows not being rendered while resizing.
Fixes #6069.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
GLES2 has GL_EXT_blend_func_extended extension that enables
dual-source blending, so essentially we can reuse fragment shader
from GLSL3 renderer and do 1 rendering pass instead of 3 for the
text.
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Co-authored-by: Christian Duerr <contact@christianduerr.com>
|
| | |
| |
| | |
Co-authored-by: Christian Duerr <contact@christianduerr.com>
|
| | | |
|
| | |
| |
| |
| |
| | |
There's no need to damage intermediate Vi mode cursor points, since it
can't change the terminal content meaning that only the previous
and current vi cursor's viewport points matter to damage it properly.
|
| | |
| |
| | |
Fixes #6060.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This patch fixes that the right point of the selection range moves to
another point when leaves vi-mode with a selection by ToggleViMode.
The cause is that always moves a vi-mode cursor to a search origin
whether or not the current search is active.
This problem is a regression which is introduced by #5945.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Other platforms don't have such concepts in general or have them
via different interfaces not related to EGL.
This commit also resolves some minor clippy issues.
Fixes #6051.
Co-authored-by: Christian Duerr <contact@christianduerr.com>
|
| | | |
|
| | |
| |
| |
| |
| | |
Builtin box drawing glyphs in range from '\u{2580}' to `\u{2587}`
could have gap due to missing rounding. Previously height was rounded,
however not the `y` offset. This commit fixes it.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
To prevent the current selection clipboard from being overwritten right
before pasting, text is no longer copied solely because the user
scrolled the scrollback buffer.
The selection also isn't copied when a mouse button other than LMB/RMB
are released, since these are the only ones capable of modifying the
selection range.
This should prevent issues where the selection of the user gets
unexpectedly overwritten, especially in scenarios where the user is
currently in the process of pasting something into Alacritty.
Signed-off-by: Julian Orth <ju.orth@gmail.com>
|
| | | |
|
| | |
| |
| |
| |
| | |
The `SizeInfo` is a SizeInfo used for rendering, which contains
information about padding, and such, however all the terminal need is
number of visible lines and columns.
|
| | |
| |
| |
| |
| | |
This leads to issues on macOS, since if we store clipboard at the same
time it could error out. Also, on e.g. Wayland the clipboard store for
unfocused window won't work anyway.
|
| | |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
Since `x` position in rect shader represents left side of the pixel we
should use the center of it when dealing with contiguous functions.
|
| | |
| |
| | |
Fixes #5944.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
The starting point of damage should be computed from the right side
of the terminal, not from the starting point of line indicator.
|
| | |
| |
| |
| | |
Ceiling line position results in strikeout line being lower than
it should.
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
If WAYLAND_DISPLAY contains a '/', we have to replace with with another
character before using WAYLAND_DISPLAY as a path component.
|
| | |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| | |
This finishes implementation of underline styles provided by
`CSI 4 : [1-5] m` escape sequence.
|
| | |
| |
| |
| | |
Since we could queue damage before we get into the actual rendering
we should clear it after drawing not before.
|
| | |
| |
| |
| |
| | |
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.
|
| | |
| |
| | |
Fixes #5873.
|
| | | |
|
| | |
| |
| |
| | |
This commit also makes our CI fail hard when warning encountered when
building only for either Wayland or X11.
|
| | |
| |
| |
| | |
The alpha is expected to be premultiplied from the text shader, so
we should apply it to the background color.
|
| | |
| |
| | |
Fixes #1628.
|
| | |
| |
| |
| |
| | |
This method no longer returns an `Option` since #5773.
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
|
| | | |
|
| | |
| |
| |
| | |
This fixes an issue when search results were not damaged when leaving Vi
mode.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| | |
Co-authored-by: Christian Duerr <contact@christianduerr.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| | |
This also fixes a bug where the welcome log message wasn't logged.
|
| | |
| |
| |
| | |
This commit takes into account `font.offset` and `font.glyph_offset`
when generating built-in font.
|
| | |
| |
| |
| |
| | |
This commit adds the config `font.builtin_box_drawing` option to
control built-in font, which is enabled by default.
|