Commit Graph
8555 Commits
Author SHA1 Message Date
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
Wez Furlong 4b3b5ffa16 docs for https://github.com/wezterm/wezterm/pull/7274 2025-10-14 19:36:57 +01:00
Benoit de Chezelles 135b187fa8 Revert "Fix crash on hidpi with wayland (#6508)"
This reverts commit d1684d38e8.
2025-10-14 19:36:43 +01:00
Jun Wu 06a06bca94 termwiz: respect use_serde for a few more structures
Add use_serde optional serde support for a few more structures.
2025-10-14 19:35:29 +01:00
I-Info c8a649684d fix: memory leak in macOS MetalLayer management
When using WebGPU front end, creating and closing windows will cause
VM:IOSurface memory leak, due to an unreleased object reference.

Also with some other trivial memory leak prevention measures.
2025-10-14 19:33:09 +01:00
a.e. bb297506db fix: boundary check condition in renderstate (#7274) 2025-10-14 19:25:27 +01:00
Wez Furlong db5d743738 toast: fixup dead code warning
The type isn't constructed, but it is part of the interface
2025-10-05 11:00:37 +01:00
Wez Furlong 514bb39a7d fixup some mismatched_lifetime_syntaxes warnings 2025-10-05 10:59:20 +01:00
Wez Furlong 75df5e24d9 cargo fix 2025-10-05 10:58:00 +01:00
Wez Furlong d658b2f2fb cargo update 2025-10-05 10:56:09 +01:00
Wez Furlong b7dd3bc812 ci: maybe fix windows ci
iscc.exe is no longer included in windows-2025, but we need it

refs: https://github.com/actions/runner-images/issues/11644
2025-10-05 10:55:24 +01:00
Wez Furlong b0093583e7 docs: changelog for #7277 2025-10-05 10:52:56 +01:00
Kaleb Olson c6f25ea3f9 Fix fractional scaling issues in hyprland 0.51.0 2025-10-05 10:51:28 +01:00
Rebecca Turner bf9a2aeeba Fix mismatched_lifetime_syntaxes warnings
Fixes a bunch of warnings like this:

```
warning: hiding a lifetime that's elided elsewhere is confusing
   --> window/src/os/macos/window.rs:670:23
    |
670 |     fn display_handle(&self) -> Result<DisplayHandle, HandleError> {
    |                       ^^^^^            ------------- the same lifetime is hidden here
    |                       |
    |                       the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
    |
670 |     fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError> {
    |                                                     ++++
```

This lint was added in Rust 1.89: https://github.com/rust-lang/rust/issues/141787
2025-09-09 07:05:12 -07:00
Kenneth Jefferson 6a493f88fa docs: Fix typo in augment-command-palette.md
Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
2025-07-30 19:57:51 +01:00
Kenneth Jefferson ac11fcfa41 fix: Corrected bad title in MoveForwardWordEnd.md
Signed-off-by: Guennadi Maximov C <g.maxc.fox@protonmail.com>
2025-07-30 19:57:51 +01:00
Chris Pick dd6e5bd2f4 Unset $RUST_BACKTRACE in nixShell
Prevent printing two backtraces.

env-bootstrap/src/lib.rs's `register_panic_hook()` already prints a
backtrace unconditionally, setting `RUST_BACKTRACE=1` causes a duplicate
to be printed.
2025-07-25 07:39:38 +01:00
Wez Furlong d1bdb8a350 ci: debian 10.3 (buster) is no longer available, remove it 2025-07-23 08:21:40 +01:00
Wez Furlong 411590aa1f docs: changelog for #7098 2025-07-23 08:17:29 +01:00
Chris Pick efec7001a3 Re-enable macOS' "Services" menu
Now that validating service menu items doesn't loop forever, it can be
re-enabled.

It still won't have all possible services listed until/unless validation
is implemented more thoroughly, but some are already present.
2025-07-23 08:15:24 +01:00
Chris Pick cfb1e9190f Prevent infinite loop in macOS' "Service" menu validation
The `WezTermAppDelegate` class was setting `NSWindow` as its parent.

This caused an infinite loop any time macOS's "Service" menu was
expanded becuase it would pass [`validRequestorForSendType:returnType:`]
(https://developer.apple.com/documentation/appkit/nsresponder/1524638-validrequestor)
messages along the full responder chain to [check for objects that are
eligible for services offered by other applications]
(https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html#//apple_ref/doc/uid/10000060i-CH3-148895).

The [responder chain]
(https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.html#//apple_ref/doc/uid/10000060i-CH3-SW9)
would walk up to the `WezTermAppDelegate` which, since it was an
`NSWindow`, would walk back to `NSApp` which would walk to its delegate
(`WezTermAppDelegate`) and so on forever.


Change `WezTermAppDelegate`s parent class `NSObject` to prevent this
loop.

Fixes: https://github.com/wezterm/wezterm/issues/6738
Fixes: https://github.com/wezterm/wezterm/issues/6833
2025-07-23 08:15:24 +01:00
Chris Pick 85c587f9f3 Remove deprecated NSWindowFullScreenButton
Fixes #7080 to prevent null pointer dereference (and crash in debug
mode) on macOS.

`NSWindowFullScreenButton`
[is deprecated](https://developer.apple.com/documentation/appkit/nswindow/buttontype/fullscreenbutton?changes=__6_5&language=objc).
Removing it prevents a null pointer from being dereferenced and doesn't
otherwise impact behavior.

Confirmed that `window_decorations = "RESIZE"` sill works
[with rounded corners](https://github.com/wezterm/wezterm/issues/1034).
2025-07-13 13:51:09 +01:00
github-actions[bot] c7f4b081a6 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/12a55407652e04dcf2309436eb06fef0d3713ef3?narHash=sha256-N4cp0asTsJCnRMFZ/k19V9akkxb7J/opG%2BK%2BjU57JGc%3D' (2025-05-16)
  → 'github:NixOS/nixpkgs/b95255df2360a45ddbb03817a68869d5cb01bf96?narHash=sha256-IJWIzZSkBsDzS7iS/iwSwur%2BxFkWqeLYC4kdf8ObtOM%3D' (2025-06-30)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/f44db7d7cea4528288780c6347756173a8248225?narHash=sha256-veyXchTz6eWwvuW5X49UluHkheHkFcqHJSwGuKBhrmQ%3D' (2025-05-17)
  → 'github:oxalica/rust-overlay/b22d5ee8c60ed1291521f2dde48784edd6bf695b?narHash=sha256-y%2BviCuy/eKKpkX1K2gDvXIJI/yzvy6zA3HObapz9XZ0%3D' (2025-06-30)
2025-07-03 07:09:41 +01:00
Wez Furlong 54675c9c35 window: fix use of deprecated objc2_core_graphics::CGColorCreateSRGB 2025-07-01 07:47:23 +01:00
Wez Furlong 9dbd5e16fa macos: pin legacy objc deps to version before mass deprecation
These crates are all deprecated in favor of the new objc2 crate,
but the migration to objc2 is non-trivial.  Meanwhile, the volume
of deprecation warnings is overwhelming and getting in the way.

Pin these deps back to a versions prior to the mass deprecation
so that we're not drowning in spew in the meantime.
2025-07-01 07:47:09 +01:00
Wez Furlong d3d9d8e396 env-bootstrap: migrate to objc2 2025-06-30 07:45:15 +01:00
Wez Furlong c4acbbc823 cargo update 2025-06-30 07:31:38 +01:00
Wez Furlong b249d9c427 deps: wgpu 24 -> 25 2025-06-30 07:28:05 +01:00
Wez Furlong d765b89594 gui-subcommands: remove unused anyhow dep 2025-06-30 06:52:24 +01:00
Rain 2deb317ec0 improve pct_to_glyph algorithm for progress reporting
The current `pct_to_glyph` algorithm would unintentionally produce `\u{f0aa6}`
for percentages in the range 96..=100.

Use a different algorithm that:

* uses an empty circle for the first 5%
* uses a filled circle for the last 5%
* has a roughly even distribution for the rest of the range
2025-06-24 07:12:46 +01:00
Wez Furlong 2b656cb5b9 docs: changelog for #7046 2025-06-22 06:47:17 +01:00
James Holderness 58141ad6f2 term: indicate support for OSC 52 in Primary DA response
This is an extension agreed upon by modern terminals to indicate that
they support copying to the clipboard with XTerm's OSC 52 sequence.

https://github.com/contour-terminal/vt-extensions/blob/master/clipboard-extension.md
2025-06-22 06:44:36 +01:00
Phineas Jensen d6c178f961 Fix disable ligatures snippet 2025-06-15 12:14:31 -07:00
Wez Furlong 5106c8c1f7 docs: add since-nightly to kde_window_background_blur
refs: https://github.com/wezterm/wezterm/pull/6905
2025-06-04 06:01:57 -07:00
Wez Furlong 53da5d463b docs: fmt 2025-06-04 06:01:45 -07:00
Benoit de Chezelles 649931178e Rename flake update workflow to be with other nix-related workflows 2025-06-04 05:59:28 -07:00
Benoit de Chezelles 518be59b9d Don't update th flake dependencies _that_ ofthen 2025-06-04 05:59:28 -07:00
Wez Furlong b11cd7ae7e fixup split behavior with default_prog
https://github.com/wezterm/wezterm/pull/6850 changed the behavior
of spawning in such a way that if you had a default_prog and split
a pane, the default_prog you had set would not take effect.

This is because a later normalization stage would skip applying
resolving/applying the default_prog because it thought that the
command builder was already fully baked.

This commit allows that fixup logic to reason about the configured
default_prog (which may be different in a WSL context!) and fixup
the builder.

This is an alternative approach to resolving
https://github.com/wezterm/wezterm/issues/6955 for which a patch was
proprosed in https://github.com/wezterm/wezterm/pull/6972.  That PR
wouldn't be quite right because the underlying logic could consider the
default_prog from a domain-specific source, rather than the global
configuration.
2025-05-24 11:21:04 -07:00