14 Commits
Author SHA1 Message Date
Josh Triplett 0d11cabfc4 misc: Replace uses of deprecated ::max_value() with ::MAX (#8365) 2026-11-20 07:13:41 +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
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
xtqqczze 699fd77b44 fix: gate windows-sys dependency (#8159)
refs: #8107
2026-09-14 16:14:09 +02:00
xtqqczze 86d223ec87 wezterm-escape-parser: fix Rust aliasing violation (#8129)
Avoid creating a `&[u8]` reference over Windows _shared_ memory.
Instead, copy the mapped data directly with `ptr::copy_nonoverlapping`,
preventing aliasing violations.

refs: #8051
2026-09-05 18:07:23 +02:00
Mateusz Mikuła 8d668a78c9 wezterm-escape-parser: Remove deprecated macro_use 2026-09-05 17:54:22 +02:00
xtqqczze 092dcf70d8 style: Add newline after inner attribute for readability (#8130)
Add a newline after inner attributes to make it clear that the
attribute applies to the enclosing item rather than the following item.
2026-09-05 15:31:29 +02:00
xtqqczze d4f5c4878a wezterm-escape-parser: Replace winapi with windows-sys (#8107)
part of #7797
2026-09-04 14:35:31 +02: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 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 47b6410f8f accommodate more no_std builds 2025-05-10 15:07:21 -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 5306090f6c extract wezterm-escape-parser into its own crate 2025-05-10 14:54:05 -07:00