Commit Graph
8592 Commits
Author SHA1 Message Date
Xuntao Chi 8afe0ad307 pty: windows: fix kill() (#7709)
Fix inverted logic when considering the return value from the TerminateProcess call.
2026-06-07 08:24:27 +01:00
Anton Novoselov 29d01fc8e5 fix: prevent stack overflow from process tree cycles in build_proc (#7706)
The `build_proc` function in procinfo recursively walks the process
tree to build child process information. If a cycle exists in the
parent PID chain (which can happen on Windows in particular due to PID
reuse or race conditions during process snapshot enumeration),
the recursion never terminates and overflows the stack.

Add a `visited` HashSet to track already-visited PIDs and skip them,
preventing infinite recursion. Applied to all three platforms (Windows,
Linux, macOS)

Fixes #7705
Related: #6671
2026-06-07 08:22:04 +01:00
KOGA Mitsuhiro 900bab10d6 Fix RefCell borrow conflict when toggling IME on Windows (#7529)
* Fix RefCell borrow conflict when toggling IME on Windows

When IME is active, the `key` function was holding a borrow on the
window's inner RefCell while calling `TranslateMessage`. This Windows
API can trigger other window messages (like WM_SIZE) via
`CtfImeCreateInputContext`, which then attempt to borrow the same
RefCell, causing a panic with "RefCell already borrowed".

Similarly, `ime_set_context` was holding a borrow while calling
`DefWindowProcW`, which can also trigger recursive window messages.

Fix by dropping the borrow prior to triggering potentially recursive calls.

Fixes the crash that occurred when toggling IME (e.g., pressing
Hankaku/Zenkaku key) after splitting a pane on Windows.
2026-06-07 08:17:27 +01:00
093bf6bf2b nix: Update flake.lock (#7463)
* flake.lock: Update

  Flake lock file updates:

  • Updated input 'nixpkgs':
      'github:NixOS/nixpkgs/23258e0' (2025-11-30)
    → 'github:NixOS/nixpkgs/f3ce60d537 (2026-06-06)
  • Updated input 'rust-overlay':
      'github:oxalica/rust-overlay/3bfa664' (2025-11-30)
    → 'github:oxalica/rust-overlay/27b7e78c6 (2026-06-06)

* fix(flake): remove deprecated xorg.* package aliases

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Alex Wicks <alex@awicks.io>
Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-07 01:32:57 +02:00
Benoit de Chezelles 05c5c9cc15 docs: changelog for #7137 & #7710 2026-06-06 15:53:43 +02:00
Wez Furlong 8a8cf6a75f docs: update for build/distro changes 2026-06-06 11:47:17 +01:00
Wez Furlong 3054d107fd ci: deploy: match cygwin -> windows as well 2026-06-06 11:46:14 +01:00
Wez Furlong 62fcc23bf8 ci: bump windows, add debug
The OSTYPE isn't matching in the deploy script any longer, which
suggests that "something changed" in the image.  Let's explicitly
point to a newer image: that was previously blocked because the
installer tools were not present.  The associated issue has been
closed, so since we're broken right now anyway, let's move this
up and troubleshoot on the newer image.
2026-06-06 10:32:38 +01:00
Wez Furlong 95d7b634e0 ci: make dependabot match 2-week cooldown settings for rust 2026-06-06 08:52:10 +01:00
Wez Furlong 0aa78582a4 ci: bump download-artifact 2026-06-06 08:46:28 +01:00
Wez Furlong 73ac6f2802 deps: cargo cooldown update
Add a trivial little script to run `cargo cooldown update`.
The purpose of the script is to make it a little more discoverable
in the future if I or someone else forgets how this works.

https://crates.io/crates/cargo-cooldown is required to run this
script.  Its purpose is to run `cargo update` while respecting
the dependency cooldown options found in cooldown.toml in the
root of the repo
2026-06-06 08:30:00 +01:00
Wez Furlong 71ac841b80 ci: bump upload-artifact 2026-06-06 08:13:15 +01:00
Wez Furlong 954bdc3303 ci: appimage build requires the file command 2026-06-06 08:11:54 +01:00
Wez Furlong f4e41b746a ci: restore building the appimage
Tweak to make it more difficult to overlook when we later deprecate
a particular platform/target.

Similarly for the gemfury apt repo uploads
2026-06-06 07:31:47 +01:00
Wez Furlong d4bababa1b ci: bump some actions workflows, drop some EOL/old distros
This is just a quick pass to get CI more in the green, and to use
fewer resources: some of these distros are pretty old.

Note that our remaining fedora entry here is also EOL; we can
review bumping that in a separate pass.
2026-06-06 07:19:05 +01:00
dependabot[bot] 437e003b11 build(deps): bump actions/stale from 9.1.0 to 10.0.0
Bumps [actions/stale](https://github.com/actions/stale) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v9.1.0...v10.0.0)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 10.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-06 07:08:03 +01:00
Wez Furlong f2a60214cd bump lock-threads to v6 2026-06-06 07:05:34 +01:00
Benoit de Chezelles dab1816d05 gh: update issue template with new label name 2026-06-05 10:11:45 +02:00
Benoit de Chezelles a50722bd81 Revert "gha: Update no-response workflow to match new label name"
This reverts commit b4ca9a1365.

The longer label actually looks bad/truncated in GH ui 😬
2026-06-05 09:33:28 +02:00
Benoit de Chezelles b4ca9a1365 gha: Update no-response workflow to match new label name 2026-06-05 07:00:46 +02:00
Benoit de Chezelles eeb8097292 fix: Detect if running in WSL with icase 'microsoft' check (#7137) 2026-06-04 14:54:53 +02:00
John Taylor 9221506a1a docs: Add Void Linux installation instructions for WezTerm (#7371) 2026-06-04 14:52:17 +02:00
drapeol bd7de12f39 docs: Update rustup install link in source.md (#7811) 2026-06-04 14:36:08 +02:00
Tautik AgrahariandBenoit de Chezelles 297637504a Fix 'the the' typos across doc & code files (#7769)
* docs: fix duplicate-word typos across doc files
* code: fix duplicate 'the the' typos across code files

Co-authored-by: Benoit de Chezelles <benoit.dechezelles@gmail.com>
2026-06-04 14:09:39 +02:00
Matt Dembiczak 760ed023e4 docs: fix typo in quick_select_alphabet.md (#7169) 2026-06-04 13:46:42 +02:00
Yoan Wainmann 43db8a49dd docs: add build-from-source section to CONTRIBUTING.md (#7688) 2026-06-04 13:44:38 +02:00
KevinSilvester 21f656f931 docs: add missing panes field to TabInformation (#7710) 2026-06-04 13:31:13 +02:00
Jeff QuastandWez Furlong 577474d89e Prevent "screen scraping", disable DECRQCRA (#7701)
* Security fix: prevent screen scraping

Problem
-------

DECRQCRA was added in 6cbb3ba43, for 9702d1cf5 (esctest integration) Sunday, March 17 2019.  Six days later, March 23 2019, although esctest was removed in c93f967bc, DECRQCRA remained enabled by default for all WezTerm releases since.

March 2023, @j4james mentioned WezTerm has this option enabled by default https://github.com/microsoft/terminal/issues/14974, "some people consider it a security risk"

September 2023, https://dgl.cx/2023/09/ansi-terminal-security#cursor-checksum article writes, "using DECRQCRA [..] potential attack here is reading what is displayed on the terminal before a user SSHes to a remote system."

By switching to "alternate screen", it also possible to recover last TUI display, such as contents of the file last opened in an editor.

Example CLI script scrapes screens '0' and '1' of WezTerm, https://github.com/jquast/blessed/blob/master/bin/screen-scrape.py

Solution
--------

Disable https://vt100.net/docs/vt510-rm/DECRQCRA.html by default, may be re-enabled by configuration.

---

Refs: https://github.com/wezterm/wezterm/pull/7701

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2026-03-31 04:00:28 -07:00
Yiding Jia 05343b3870 wezterm-blob-leases: Use uuid v4 over v1 2026-01-17 15:44:28 +00:00
Wez Furlong 31b1beda3f docs: changelog for #7076 #7504 2026-01-17 15:37:31 +00:00
Jonathan Giannuzzi 30ef869d72 Fix parsing of partial SGR mouse sequences 2026-01-17 15:35:15 +00:00
Wez Furlong 669497f80e docs: changelog for #7483 2026-01-17 15:27:40 +00:00
Claude d2fc83559c Fix macOS notifications to display as toast popups
Add UNNotificationPresentationOptions::Banner and Badge flags to
notification presentation options in macos.rs. This ensures that OSC 9
escape code notifications and window:toast_notification() calls display
as visible toast popups on macOS with badge indicators, not just entries
in the Notification Center.

Fixes issue where notifications were only shown in Notification Center
with sound, but no visible banner popup appeared.

Thanks to @joshuataylor for identifying the issue and suggesting the fix:
https://github.com/wezterm/wezterm/issues/5476#issuecomment-3652352095

Fixes #5476
2026-01-17 15:25:26 +00:00
Jeremy Fitzhardinge 712400a558 Fix COPR virtual package installation on Fedora 43
Move the main package Requires directive before subpackage definitions in the RPM spec file. The Requires statement for the main 'wezterm' metapackage must appear before any %package subpackage sections to be properly recognized by RPM. This fixes the issue where installing the 'wezterm' virtual package would install nothing, while installing wezterm-common and wezterm-mux-server separately worked correctly.
2026-01-16 05:46:04 +00:00
Jeremy Fitzhardinge f3602d2b21 Fix COPR build: expand TAR_NAME variable in BUILD_REQUIRES
The BUILD_REQUIRES heredoc was using a quoted delimiter ('BREQEOF'),
which prevented shell variable expansion of ${TAR_NAME}. This caused
RPM build errors when the spec file received the literal string
"wezterm-${TAR_NAME}.tar.gz" instead of the expanded filename.

Changed to an unquoted delimiter (BREQEOF) to enable variable expansion.
2026-01-15 08:50:19 +00:00
Anton RyzhovandWez Furlong 6e02c91e6b Fix typo in docs/scrollback.md (#7484)
* Fix typo in `docs/scrollback.md`

* Update docs/scrollback.md

---------

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
2026-01-08 23:47:10 -07:00
Simonas Kazlauskas 3715c8744d log: add a missing newline 2026-01-08 13:20:11 +00:00
Simonas Kazlauskas 4e8a7d0d86 ringlog: make printing to stderr faster
I was trying to debug an issue I'm seeing with wezterm and figured I
would try to use the terminal for my day-to-day with trace logds enabled
while I try to figure it out.

Unfortunately it turned out to be disruptive enough to make the terminal
almost unusable. I narrowed at least *that* part down to the fact that
printing out each log message would result in about screenful worth of
`write(2)` syscalls, many of them printing just one space character each
(padding? debug structure identation?)

Although it would be ideal to use a line-based buffered writer here,
pre-formatting the log string to a String before printing seemed like a
straightforward quick solution and it works amazingly well!
2026-01-08 12:35:44 +00:00
dependabot[bot] 219d1ef33f build(deps): bump lru from 0.12.5 to 0.16.3
Bumps [lru](https://github.com/jeromefroe/lru-rs) from 0.12.5 to 0.16.3.
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.12.5...0.16.3)

---
updated-dependencies:
- dependency-name: lru
  dependency-version: 0.16.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-08 11:20:23 +00:00
Spenser Black 4bcb2b32ce Fix copy buttons for BSD installation instructions
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`.
2026-01-07 16:15:48 +00:00
Spenser Black f658879ea1 Fix selector for codblock copy button
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.
2026-01-07 16:15:48 +00:00
github-actions[bot] d3b0fdad45 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/b95255d' (2025-06-30)
  → 'github:NixOS/nixpkgs/23258e0' (2025-11-30)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/b22d5ee' (2025-06-30)
  → 'github:oxalica/rust-overlay/3bfa664' (2025-11-30)
2025-12-01 07:57:47 +00:00
Wez Furlong ac08cdf6d7 ci: maybe fixup for rpm package split
refs: https://github.com/wezterm/wezterm/pull/7395
2025-11-23 15:45:00 +00:00
Jeremy Fitzhardinge b647d74fd2 Split RPM package into separate subpackages for wezterm-common, wezterm-gui, and wezterm-mux-server
Uses RPM subpackages (%package -n) with a single spec file - the standard approach for generating multiple binary RPMs from one build. This allows wezterm-mux-server to be installed without GUI dependencies (X11, Wayland, fontconfig, mesa-libEGL, etc).

Changes:
- wezterm-common: CLI launcher and utilities, requires only openssl
- wezterm-gui: GUI terminal with desktop integration, requires GUI libraries
- wezterm-mux-server: Headless multiplexer server, requires only openssl
- wezterm: Metapackage requiring all three for backward compatibility

Single %build section compiles all binaries together. Works for both COPR (source RPM) and binary RPM builds.
2025-11-23 15:26:34 +00:00
Wez Furlong 118802c244 cargo update 2025-11-11 07:10:56 +00:00
Wez Furlong a9a165e46c docs: changelog for #7366 2025-11-11 07:09:15 +00:00
Linken Quy Dinh 598fb9ce1b max_fps config fix 2025-11-11 07:07:46 +00:00
Maxime Poncet b6e75fd7c8 Typo 2025-10-25 07:03:38 +01:00
Maxime Poncet f16e23abd0 Update linux.md with Fedora Atomic installation steps
Add installation instructions for Fedora Atomic Desktops.
2025-10-25 07:03:38 +01:00
Wez Furlong 64f2907c63 docs: changelog for https://github.com/wezterm/wezterm/pull/7283 2025-10-14 19:36:57 +01:00