Draws a braille spinner in the tab title when a pane reports
Indeterminate progress, advancing one frame every 100ms.
This only shows when no format-tab-title event is used, and
leverages some of the infra we have for git animation scheduling.
* Add ext-background-effect-v1 support for wayland
* Deprecate `kde_window_background_blur`; use `wayland_window_background_blur`
* Update changelog (replace old kde… option entry with wayland…)
---------
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
assign_image_to_cells contained two unguarded divisions that could panic
with 'attempt to divide by zero' and take down the pane (and, under the mux,
the pane's reader thread):
1. A Kitty graphics escape requesting a zero-sized placement (eg: an explicit
w=0/h=0, or a source origin outside the image bounds) yields a
draw_width/draw_height of 0, used as a divisor when sizing the image.
This is the case reported in #6344.
2. Displaying a cell-sized image (one without explicit c=/r=) on a pane whose
pty reported no pixel dimensions makes cell_pixel_width/height 0, which is
then used as a divisor. A zero pixel size is the default PtySize and is what
tmux/headless domains report, so a perfectly valid image crashes there.
Guard both: refuse the placement when the drawable region or the cell pixel
size is zero.
The error flows into the existing logging handlers for the Kitty, iTerm and
Sixel paths, so no callers change.
Real GUI panes always have a non-zero pixel size, so valid images are
unaffected.
Adds regression tests for both cases (each panics on main, passes with the
fix) and enables kitty graphics in the test terminal config (off by default)
so the path is exercised.
Closes#6344
---------
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
The JS that removes the `$` prefix from copied text expects a `console`
code block, but the BSD instructions were using `bash` code blocks. This
switches those code blocks to `console`.
The selector used `button.md-clipboard`, but the copy button does not
have this class, causing the selector to fail to match. This switches
that class for the current copy button's class.
This is a partial implementation of keepalives; it has the good
part (the sending of the packet on the requested interval), but
not the other part (disconnecting if we don't hear anything after
some number of packets).
The reason for not having the latter is that it isn't obvious to me how
to expose whether the channel had more incoming packets since sending
the ignore, so we cannot confidently act to terminate the connection.
refs: https://github.com/wezterm/wezterm/issues/4023
* feat(mark-last-tab): append last tab name with '*'
I think there should be a better method instead of make the save function so crowded.
But this works for now similar to `tmux` windows. But, `tmux` is using '*' for current and '-' for last
Hardcoded '*'
* Revert "feat(mark-last-tab): append last tab name with '*'"
This reverts commit 6f11c16dd9b034977088820fbc86a4456df9d513.
* feat(tab): add is_last to indicate previous active tab - last tab.
Add usage example to format-tab-title.md
Add docs to TabInformation.md
Couldn't add tests, perhapse can you guide on adding test for this?
* Update docs/config/lua/TabInformation.md
renaming as suggested.
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* Update wezterm-gui/src/termwindow/mod.rs
renaming as suggested.
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* Update docs/config/lua/window-events/format-tab-title.md
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
* refactor: rename `TabInformation` attribute to `is_last_active`
---------
Co-authored-by: Omar Elmasri <omarmasri@duck.com>
Co-authored-by: Wez Furlong <wez@wezfurlong.org>