Commit Graph
8496 Commits
Author SHA1 Message Date
Wez Furlong 0fb80ca503 cargo update 2025-05-17 09:21:10 -07:00
Benoit de Chezelles e8785f5fe3 nix: Update harfbuzz
refs: f412c817c
2025-05-17 09:08:20 -07:00
Wez Furlong f412c817c6 update harfbuzz to 11.2.1 2025-05-17 06:44:31 -07:00
Wez Furlong ce58db64da docs: add faq entry on how to disable ligatures
closes: https://github.com/wezterm/wezterm/issues/6413
2025-05-17 06:38:52 -07:00
Joe Xue 8fb60ad82b fix: tmux -CC mode not parsing output correctly
refs: #6769
closes: #6779

The tmux output may split into multiple parts, if this spliting happens
in the middle of multiple bytes UTF8 characters, then the issue raised.
That the first part will have incomplete UTF8 character while the second
part will have a invalid UTF8 character.

In this case, we have to treat the output text as bytes rather than
UTF8 string.

This fix unvis the output text and send to pane as bytes.
2025-05-17 06:06:17 -07:00
Wez Furlong 909573fad9 ssh: implement ServerAliveInterval for libssh backend
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
2025-05-14 07:14:22 -07:00
Benoit de Chezelles bb3c8e2200 Fix Nix build by disabling broken cargo-auditable step 2025-05-13 19:26:51 -07:00
Wez Furlong 475e9f571f docs: changelog for #6895 2025-05-11 22:23:09 -07:00
ad44b159c2 feat(mark-last-tab): append last tab name with '*' (#6895)
* 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>
2025-05-11 22:20:21 -07:00
Wez Furlong a841a72cf2 docs: changelog for #6796 2025-05-11 10:01:17 -07:00
mgpinf 9b2350f292 docs: add Launcher label bg, fg to Colors & Appearance 2025-05-11 09:59:01 -07:00
mgpinf 4a32feaa7e feat: add configuration option for Launcher label bg and fg
Add below configuration option in config.colors:
- launcher_label_bg
- launcher_label_fg

If above mentioned options are not set in the configuration file then:
- launcher_label_bg defaults to default background color
- launcher_label_fg defaults to default foreground color
2025-05-11 09:59:01 -07:00
Wez Furlong 573bc4ac06 docs: changelog for #6801 2025-05-11 09:56:35 -07:00
mgpinf 65dbbe87e8 docs: update description for hold option
Update description for hold option in cmd-synopsis-wezterm-imgcat--help.txt
2025-05-11 09:54:57 -07:00
mgpinf 659f9900d2 chore: update shell completion descriptions for imgcat --hold option
Update shell completion descriptions for imgcat --hold option for below
shells:
* zsh
* fish
2025-05-11 09:54:57 -07:00
mgpinf cfd91c022e feat: add additional key modifier combinations to exit polling input
Add below key modifier combinations to exit polling input when hold
option is set:
* Ctrl-C
* Ctrl-D
* Escape
2025-05-11 09:54:57 -07:00
mgpinf 5cab87d42e fix: set raw mode if hold option is set
This is to disable local echo
2025-05-11 09:54:57 -07:00
github-actions[bot] f2ac5c5e4c flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d6973081434f88088e5321f83ebafe9a1167c367?narHash=sha256-cuNapx/uQeCgeuhUhdck3JKbgpsml259sjUQnWM7zW8%3D' (2025-01-02)
  → 'github:NixOS/nixpkgs/b3582c75c7f21ce0b429898980eddbbf05c68e55?narHash=sha256-FshoQvr6Aor5SnORVvh/ZdJ1Sa2U4ZrIMwKBX5k2wu0%3D' (2025-05-07)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/a599f011db521766cbaf7c2f5874182485554f00?narHash=sha256-6Ta5E4mhSfCP6LdkzkG2%2BBciLOCPeLKuYTJ6lOHW%2BmI%3D' (2025-01-03)
  → 'github:oxalica/rust-overlay/c46d2764319f962b20ce9c03ce6644dd0de87bc9?narHash=sha256-cXn1RsYZjS23n0%2BYP3TiH7XBlEvy8FA2mG54MdAL6x0%3D' (2025-05-11)
2025-05-11 09:51:45 -07:00
Wez Furlong f74bb06689 ci: maybe fixup flake workflow 2025-05-11 06:37:31 -07:00
dependabot[bot] b6cfba6ff3 build(deps): bump cachix/cachix-action from 15 to 16
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 15 to 16.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v15...v16)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-version: '16'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-11 06:25:21 -07:00
Wez Furlong d80060318a docs: changelog for #6850 #6845 2025-05-11 06:24:18 -07:00
Vincent BesanceneyandWez Furlong 0bb382bf54 fix: honor environment variables and cwd unconditionally for SpawnCommand (#6850)
* fix: honor environment variables and cwd unconditionally for SpawnCommand

The SpawnCommand specifies information about a new command to be spawned.
If the args field is omitted, the default program for the target domain
is spawned. However, this also causes other fields like environment
variables and cwd to be wiped out.

The command builder now behaves consistently for all fields, whether the
args field is set or omitted.

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-11 06:22:11 -07:00
Kevin Ernst 7f52f05580 Add font and window geometry settings to "Quick Start" example config (#6412)
* Add initial rows/cols to config quick start
* Add 'docs' target to Makefile
2025-05-11 06:06:10 -07:00
Wez Furlong 408b2016e2 termwiz: fixup win32 build 2025-05-11 05:45:14 -07:00
Wez Furlong 7ee60e2d9b wezterm-escape-parser: fixup win32 build, take 2 2025-05-10 17:58:18 -07:00
Wez Furlong 8025483486 wezterm-escape-parser: fixup build on win32 2025-05-10 15:35:26 -07:00
Wez Furlong 0f342e8894 wezterm-ssh: fixup standalone std build 2025-05-10 15:31:49 -07:00
Wez Furlong 6c7e3722b1 term: normalize imports to wezterm-xxx rather than termwiz re-exports 2025-05-10 15:08:56 -07:00
Wez Furlong 2b15e46421 refactor: extract wezterm-surface from termwiz 2025-05-10 15:07:21 -07:00
Wez Furlong 6740628da5 refactor: extract wezterm-cell from termwiz 2025-05-10 15:07:21 -07:00
Wez Furlong 47b6410f8f accommodate more no_std builds 2025-05-10 15:07:21 -07:00
Wez Furlong bb6534bd4b wezterm-char-props: allow building no_std 2025-05-10 15:07:21 -07:00
Wez Furlong 80de3aa313 refactor: extract wezterm-char-props from termwiz
This new crate holds the unicode character properties
and other similar data on emoji and nerdfonts codepoints.
2025-05-10 15:07:20 -07:00
Wez Furlong 0cd3fe8f97 wezterm-escape-parser: allow building no_std (but with alloc)
This commit makes a number of parts of wezterm's core
parsing functionality no_std compatible, but requiring alloc.

In the no_std environment, several lookup tables that would
normally have been used to accelerate some operations are
not available and we instead fall back to an O(n) operation.
2025-05-10 15:07:20 -07:00
Wez Furlong 304fb40567 switch termwiz over to wezterm-escape-parser 2025-05-10 14:54:05 -07:00
Wez Furlong 5306090f6c extract wezterm-escape-parser into its own crate 2025-05-10 14:54:05 -07:00
Wez Furlong 2d41780bb4 vtparse: improve CsiParam Debug impl
show the byte as a char
2025-05-10 14:53:59 -07:00
Wez Furlong 4a210168e1 add new text_min_contrast_ratio option
This can help improve readability by forcing the foreground
color luminance to adjust to increase the contrast ratio to
the specified value.
2025-05-10 09:29:08 -07:00
Wez Furlong 96e91ab78b add colortest script
I thought I had added one of these a long time ago
2025-05-10 08:56:21 -07:00
Wez Furlong bc3dde9e75 docs: changelog for #6584 2025-05-09 10:04:05 -07:00
James HurstandWez Furlong af8d521ef6 feat: enforce minimum contrast ratio for reverse video cursor (#6584)
* feat: enforce minimum contrast ratio for reverse video cursor

* feat: add reverse_video_cursor_min_contrast to config

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-09 09:54:39 -07:00
Wez Furlong dd3caaae34 docs: changelog for #6905 2025-05-04 06:31:33 -07:00
parthandWez Furlong 4d6b83585f feat: Added support for window blur on KDE Wayland (#6905)
* added config flag for kde blur

* added deps for wayland-protocol-plasma

* added kde background blur

* keeping inner functions together

* updated docs with kde_blur

* added kde_blur ss to docs

* removed unneeded dep

* removed redundant default value for bool

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* updated default for kde_blur in config

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Update docs/config/lua/config/kde_window_background_blur.md

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* Update blur logic in os/wayland/window.rs

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* simplified blur_manager creation in wayland/state.rs

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* removed unnecessary panic paths

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* removed unnecessary panic path

Co-authored-by: Wez Furlong <wez@wezfurlong.org>

* put the right screenshot for kde_blur

* fixed build issues

* reverted window/src/os/windows/window.rs

* fixed formatting

* Update window/src/os/windows/window.rs

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-04 06:29:27 -07:00
JanandWez Furlong 474ad16eb6 Update linux.md (#5872)
Add command to set correct permission for `/usr/share/keyrings/wezterm-fury.gpg`

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-03 07:04:28 -07:00
Wez Furlong bd094e8fab docs: format examples 2025-05-03 06:59:43 -07:00
Wez Furlong a077a62fb9 docs: changelog for #6289 #6290 2025-05-03 06:58:10 -07:00
HAMANO TsukasaandWez Furlong 8ec1f2451c add cell_widths option #6289
Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2025-05-03 06:56:33 -07:00
DevHegemony 50056b5fbe check that ps1 has not changed before restoring it 2025-05-03 06:51:31 -07:00
Johannes Altmanninger 52c3515037 Advertize the Su capability too
I'm not sure if applications are supposed to use "Smulx" and "Setulc" or
"Su". Among the terminals that implement XTGETTCAP, contour, foot, ghostty
and kitty advertize both (and XTerm neither).

"Su" is the one mentioned in the original documentation
https://sw.kovidgoyal.net/kitty/underlines/

It's a boolean capability but I'd argue that's even better since I don't
think the flexibility of string capabilities is needed.  (Personally, all
I want to use it for is to answer "will this terminal break if I emit the
hardcoded \e[4:3m and \e[58:2::1:2:3m".

Include "Su" in wezterm's terminfo, for the benefit of XTGETTCAP users..
Updated the compiled database with

	tic -x termwiz/data/wezterm.terminfo -o termwiz/data

Alternatively we could change the kitty documentation.
2025-05-03 06:39:43 -07:00
Wez Furlong 5a71e21a79 docs: changelog for #6928 #6929 #6823 2025-05-03 06:38:36 -07:00