8753 Commits
Author SHA1 Message Date
HomerandClaude Opus 5.5 9863428c64 LLeMbas TTY 1.0.0-beta.1: fork of WezTerm at 1026152aa
The first own commit on WezTerm's main, with its full history kept so
upstream can be merged in. Adds VERSION, CHANGELOG.md, a README preface,
our copyright line beside upstream's in LICENSE.md (MIT both), UPSTREAM
(the upstream commit last merged) and scripts/hygiene.sh, which checks
only what this fork adds since UPSTREAM. Nothing in the terminal changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H1bF3XAshtCGhF7TeLGcDk
2026-11-28 00:04:53 +00:00
Mateusz Mikuła 1026152aa1 test,ssh: avoid leaking user config into testing ssh sessions (#8395) 2026-11-27 09:10:11 +01:00
Yanuo MaandYanuo Ma c41674ceee wezterm-gui: use PolyStyle::Outline for branch drawing glyphs (#8385)
Custom branch-drawing glyphs (U+F5D0..U+F60D) previously stroked fading lines (0xF5D2..0xF5D5) and BlockKey::Branches segments with PolyStyle::OutlineHeavy, matching heavy box-drawing glyphs instead of light box-drawing lines (U+2500/U+2502/U+256D..U+2570) and making strokes nearly as wide as the 2/5-radius commit circles.

Switch those strokes to PolyStyle::Outline so branch lines match standard light box-drawing weight and commit nodes remain distinct.

Fixes #8382

Co-authored-by: Yanuo Ma <220247883+yanuoma@users.noreply.github.com>
2026-11-26 08:48:00 +01:00
xtqqczze 7d0eb9685c wezterm-mux-server: replace winapi with windows-sys (#8224) 2026-11-25 18:20:40 +01:00
amnabbouti eb32338108 docs: use deb822 sources format for APT installation (#8322) 2026-11-25 16:44:02 +01:00
Dani 4d2ff0dfa6 docs: fix typo in appearance docs (#8386) 2026-11-25 13:44:08 +01:00
Xander Soldaat 0c655c1e87 macos: declare NSAudioCaptureUsageDescription for hosted tools (#8389)
Programs launched from WezTerm use it as the responsible app.
Without this
usage string, macOS never prompts for
System Audio Recording and Core Audio
taps stay silent.
2026-11-25 10:30:59 +01:00
Dani 89e01990a5 docs: typo fix 2026-11-23 14:18:31 +01:00
Josh McKinney 374b4dca90 termwiz: add BufferedTerminal::terminal_ref
The only way to reach the terminal inside a BufferedTerminal was
terminal(&mut self), so code holding a shared reference could not ask
it for anything, including its size. dimensions(), reached through
Deref<Target = Surface>, is the size of the cached surface and only
changes when check_for_resize is called.

terminal_ref(&self) is the shared-reference counterpart to terminal(),
so callers can use the now &self Terminal::get_screen_size to get the
real size.
2026-11-23 13:41:27 +01:00
Josh McKinney 28709e0493 termwiz: take &self in Terminal::get_screen_size
No implementation needs mutable access to report the size. The Unix
version issues TIOCGWINSZ on the fd, the Windows version calls
GetConsoleScreenBufferInfo on the handle, and the mux and ssh
implementations copy a cached value.

The &mut requirement came from the UnixTty::get_size and
ConsoleOutputHandle::get_buffer_info helpers, which are both read-only
queries, so they take &self too.

This is a breaking change for implementors of Terminal. Callers are
unaffected, since &mut T coerces to &T.
2026-11-23 13:41:27 +01:00
Josh Triplett ee6f3044d0 wezterm-gui: Suppress unused build-dependency warning on anyhow (used on some targets) (#8367)
`wezterm-gui`'s `build.rs` uses `anyhow` on windows and macos. On other
platforms, such as Linux, it produces a warning about the unused build
dependency.

`wezterm-gui` already needs it as a dependency, so removing it as a
build dependency doesn't really help anything.

Thus, rather than encode the targets that use it, add a
```rust
use anyhow as _;
```
to suppress the warning by making it "used" everywhere.
2026-11-21 00:24:03 +01:00
Kiyoon Kim 630ba680e5 macos: Fix IME commit being lost when a key ends composition (#8109)
Clearing ime_text before interpretKeyEvents makes hasMarkedText()
answer NO while a composition is active. AppKit consults it when
applying text that an input method commits during the key event,
and discards commit text arriving together with a function key.
Korean IMEs finalize the composing syllable when an arrow key is
pressed, so that syllable was lost instead of being committed.

ime_text is maintained by setMarkedText/insertText/unmarkText, so
removing the pre-clear leaves the state correct.

refs: #6907
2026-11-20 09:46:46 +01:00
Benoit de Chezelles 3bbf48b1bf termwiz: Add a CI guard+tests for the compiled terminfo entry (#8368)
The compiled terminfo is reduced to a single artifact that CI checks
against its text source, failing on any drift.
Tests load the embedded entry and cover an XTGETTCAP response.
2026-11-20 09:00:05 +01:00
Josh Triplett 0d11cabfc4 misc: Replace uses of deprecated ::max_value() with ::MAX (#8365) 2026-11-20 07:13:41 +01:00
Kyle Sower 771a4efacc termwiz: fix Se terminfo entry to reset cursor to configured default (#7762) 2026-11-20 06:45:47 +01:00
Josh Triplett 0eeca0adfb wezterm-dynamic: Allow unreachable code in macro for infallible conversion (#8364)
The macro impl of `FromDynamic` can have unreachable error paths for
types that have infallible conversions from i64/u64 (i.e. i64 & u64).
2026-11-20 06:26:25 +01:00
Eric Shen 8066067dec wezterm-gui: fix max tab title length being always at max, even on 2nd run (#7526) 2026-11-20 05:46:26 +01:00
Ricky BlackmanandBenoit de Chezelles f3beb390b2 docs: Fix mermaid newlines in what-is-a-terminal.md (#7195)
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-11-20 05:42:43 +01:00
Ayman Bagabas fc6843fdcb docs: fix typo on 8-bit escape sequence recognition (#7585) 2026-11-20 05:32:12 +01:00
Eduard Korchmar e925e0b879 linux: Use 'Normal' priority for DBus notifications (#7555)
When urgency is set to critical, both KDE and GNOME ignore the
duration/lifetime of the notification and it never closes on its own.

ref: #489
2026-11-20 04:45:22 +01:00
Guennadi Maximov C bf0747f4af docs: fixed many small issues in Lua docs pages (#7124)
* lua: fixed markdown lists not rendering correctly in webpage
* unicode_version: fixed typo in markdown file
* visual_bell: fixed typo in documentation
* load_base16_scheme: added comma for redaction, etc.
* truncate_right: corrected improper punctuation
* mux: improved Lua snippet in `rename_workspace`
* wezterm.color.save_scheme: improved docs
* wezterm.plugin: improved every function's docs
* visual_bell: added missing code enclosures

---------

Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
2026-11-20 04:31:22 +01:00
mgpinf a0d411761d lua: Add wezterm.url.encode function to percent encode string (#7131)
This is helpful to encode a string to pass it as query string.
2026-11-20 04:19:20 +01:00
Vikas Kumar cca5700f38 config: Show mods before key for wezterm show-keys --lua (#7539) 2026-11-20 03:31:26 +01:00
Tautik Agrahari 6ac9398a15 docs(set_config_overrides): Add example to adjust window opacity (#7766) 2026-11-20 03:22:52 +01:00
AIAlloc 640e1b2fb3 macos: fix titlebar using bg color on fullscreen exit (#7792)
When using MACOS_USE_BACKGROUND_COLOR_AS_TITLEBAR_COLOR,
exiting fullscreen didn't update the titlebar, making it disappear.
2026-11-20 02:59:50 +01:00
Marc Schreiber 94fbf53d20 x11: Fix emits of additional ANSI chars from non-standard mods (#4991)
This ensures that ANSI chars won't be emitted when pressing
non-standard modifier keys.

Fixes #4975
2026-11-20 01:44:34 +01:00
Josh McKinney 21c281ab17 ci: Pin sccache to v0.16.0 on Windows (#8360)
sccache 0.17 and later expand cargo's rustc argfile and then spawn
rustc with the full command line, which exceeds the Windows limit when
building `mux` ("The filename or extension is too long", os error 206).
v0.16.0 passes the argfile through to rustc instead.

See https://github.com/mozilla/sccache/issues/2787
2026-11-20 01:40:42 +01:00
Benoit de Chezelles e1eae81a56 nix: Split the package out and drop flake-utils
- Move the derivation into `nix/package.nix` as a callPackage
  function, deriving its version from the flake revision.
- Derive the per-system list from nixpkgs instead of `flake-utils`.
- Reuse the package's build inputs in the devShell via `inputsFrom`,
  keeping only the dlopened runtime libraries explicit.
2026-11-14 12:10:57 +01:00
Benoit de Chezelles 2f9851c06f nix: Update flake inputs: flake-utils, nixpkgs, rust-overlay 2026-11-13 22:44:33 +01:00
Rui Jiang ce334cb16f nix: Add missing build inputs to the flake (#8335)
Upstream nixpkgs now requires system dependencies
for Rust packages.

Related to https://github.com/NixOS/nixpkgs/pull/584226
2026-11-13 22:42:48 +01:00
Huy Phung ce8e6b140c overlay: fix title updating only on next user action (#8031) 2026-11-12 06:19:03 +01:00
TomauskaszandTomauskasz eb8df995d5 win,blob: Fix duplicate blob storage on Windows (#7955)
Reuse live content-addressed blobs instead of replacing them.
This avoids ERROR_ACCESS_DENIED when a reader still has the existing
file open and keeps the reference count balanced.


---------

Co-authored-by: Tomauskasz <tomas.bitvinskas@gmail.com>
2026-11-12 05:43:11 +01:00
Josh Triplett aa0d91a49f term: Send current focus immediatly when focus tracking starts (#8325)
Other terminals do this when enabling focus tracking, and some programs
behave much better when they get it.
For instance, vim enables focus tracking when resumed after being
backgrounded, and then processes things on the focus event, such as
noticing if a file was changed.

Without this patch: saving a file in vim, Ctrl-Z, `cargo fmt --all`,
and `fg`; vim doesn't immediately notice the file was changed to reload it. (and then, you might edit the file further, and get a conflict later
when vim notices)

With this patch: vim notices the changes right away, making for a
smoother experience.
2026-11-12 04:29:39 +01:00
Zain Qureshi 458a100c1b docs(ssh_backend): Fix typo for default value in title (#8280) 2026-11-08 03:56:04 +01:00
ysukhovey e68a8ec277 deps: ALT Linux build initial support (#7931) 2026-10-26 08:26:28 +01:00
Wez Furlong e2a98e1b8a escape-parser: Fix no_std build and add CI coverage
Fix `make test` failing on the wezterm-escape-parser no_std configuration,
and add CI coverage to prevent silent regressions.
2026-10-10 08:39:11 +01:00
Wez Furlong 9ce141d709 ci: regenerate workflows
Poor hygiene from the earlier 135baeab0f
commit left the generated files divergent from what the generator
produced.
2026-10-10 08:39:11 +01:00
Wez Furlong 9b919222ca wezterm-ssh: Skip e2e tests when sshd fixture cannot run properly
This uses the system ssh client to validate the sshd fixture. Real client
regressions will still fail the test rather than being skipped.
2026-10-10 08:39:11 +01:00
Wez Furlong e7280b8c88 mux: Fix mouse wheel cursor movement on remote alt screens
Track alternate screen state for panes connected to a mux domain. This
enables mouse wheel events to translate correctly to cursor movement
for alt screen applications.

closes: https://github.com/wezterm/wezterm/issues/4922
2026-10-10 07:52:20 +01:00
GhostCoder6969andGhostCoder6969 372548295b mux: spelling mistakes (#8234)
Co-authored-by: GhostCoder6969 <ghostcoder6969@gmail.com>
2026-10-05 05:48:44 +02:00
Suliman Abdulrazzaq cab2516105 wezterm-escape-parser: keep ; in OSC 8 hyperlink URIs (#8207)
The OSC parser splits the whole sequence on `;`, so a hyperlink whose
URI contains a `;` (for example `data:text/plain;base64,...` or a URL
with `;` in its path or query) arrived with more than three parameters
and was rejected.
The link was then dropped and the OSC was tracked as Unspecified.

`;` is a valid URI character, so treat everything after the params as
the URI.
2026-09-29 04:33:49 +02:00
Benoit de Chezelles b09b56c29c tmuxcc: fix TmuxPty* Write impl to return length of consumed data (#8006)
refs: #8003
2026-09-17 11:44:57 +02:00
Phil Gore 2658f629cd macos: fix dictation support, with new configs for preview text (#7453)
closes: #4592 & #5180
2026-09-15 13:51:23 +02:00
Tobias Oetiker 016b96272b wezterm-gui: route OSC 52 clipboard to the pane's own window
MuxNotification::AssignClipboard was picking any window for clipboard
ownership. With 2+ windows open, OSC 52 from a pane in a newer window
set the clipboard owner as being an unrelated window.

Resolve the pane to its mux window and use the window that owns it,
only using the first/any window if the pane has no associated gui window
(e.g. a non-current workspace).
2026-09-15 13:30:58 +02:00
Tobias Oetiker d8563fa028 x11: assert selection ownership with CURRENT_TIME
update_selection_owner asserted ownership using self.copy_and_paste.time
That field only advances on key and button events delivered to that
particular window, so a window the user has not touched recently carries
a timestamp that predates the selection's lastTimeChanged.
The X server ignores SetSelectionOwner in that case, so the assertion was
previously dropped.

Use X's CURRENT_TIME constant instead which is always accepted.
This mirrors what focus() already does for the same underlying reason.

refs: #5917
2026-09-15 13:29:32 +02:00
xtqqczze 699fd77b44 fix: gate windows-sys dependency (#8159)
refs: #8107
2026-09-14 16:14:09 +02:00
ZhongYu Li 2afb836403 termwiz: add ClearLine change (#8124) 2026-09-12 13:38:23 +02:00
xtqqczze f6f0727893 deps: upgrade thiserror to 2.0 (#7973) 2026-09-12 10:57:23 +02:00
Amos Wenger c8c592d192 pty: Fix typo psuedo => pseudo (#7178) 2026-09-12 10:55:12 +02:00
Huy PhungandBenoit de Chezelles 2b56c4688f tabbar: impl proper bottom fancy tabs design (#8018)
---------
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-09-11 02:39:05 +02:00