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!
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.
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.
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.
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
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.
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.
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.
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
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.