Commit Graph

9804 Commits

Author SHA1 Message Date
Mitchell Hashimoto
4b4a5b2411 renderer/metal: clear callback before layer release
Clear the IOSurfaceLayer display callback when releasing the wrapper.
The host view can retain the backing layer beyond renderer teardown.
This prevents a later Core Animation display pass from invoking the
callback with a freed renderer context.
2026-08-05 13:52:36 -07:00
Mitchell Hashimoto
168c7b9467 core: fix encoded key request cleanup (#13635)
Encoded key requests are owned by the caller until they are added to a
key sequence or queued for IO. The child_exited path and failed queue
append returned without freeing the allocated request.

The existing errdefer was also too broad: after queueIo took ownership,
a later setSelection or queueRender error could free the queued request.

We now free requests in the return paths that still own them, and the
errdefer has been removed.

Also, activate a sequence only after encoding and queue append succeed
so failure preserves the previous sequence state.
2026-08-05 12:32:48 -07:00
Mitchell Hashimoto
b1887bd716 terminal: reset wrap state for CSI 2 K (#13637)
#13616

Reset the soft-wrap state when CSI 2 K erases the complete cursor row.
Previously, erase-to-end reset the flag while complete-line erase left
it set.

WezTerm, kitty, Alacritty, VTE, and xterm.js clear the wrap state for
complete-line erase. xterm preserves it, but xterm copies physical rows
during resize instead of reflowing them. Diverge from xterm so reflow in
Ghostty does not treat erased rows as one logical line, and cover the
behavior with a resize regression test.
2026-08-05 11:41:56 -07:00
Mitchell Hashimoto
c247e455c2 config: refill after ignored line boundaries
Refill the line iterator when an ignored comment or blank line
consumes the remaining buffered data.

Configuration parsing previously stopped silently at these boundaries
and left every subsequent setting unapplied.

Request more data before continuing the loop and cover both comment
and blank line boundaries with buffered-reader regression tests.
2026-08-05 11:30:45 -07:00
Mitchell Hashimoto
bfd40c84bd terminal: reset wrap state for CSI 2 K
#13616

Reset the soft-wrap state when CSI 2 K erases the complete cursor
row. Previously, erase-to-end reset the flag while complete-line erase
left it set.

WezTerm, kitty, Alacritty, VTE, and xterm.js clear the wrap state for
complete-line erase. xterm preserves it, but xterm copies physical rows
during resize instead of reflowing them. Diverge from xterm so reflow in
Ghostty does not treat erased rows as one logical line, and cover the
behavior with a resize regression test.
2026-08-05 11:26:48 -07:00
Jon Parise
0060d89b5b core: fix encoded key request cleanup
Encoded key requests are owned by the caller until they are added to a
key sequence or queued for IO. The child_exited path and failed queue
append returned without freeing the allocated request.

The existing errdefer was also too broad: after queueIo took ownership, a
later setSelection or queueRender error could free the queued request.

We now free requests in the return paths that still own them, and the
errdefer has been removed.

Also, activate a sequence only after encoding and queue append succeed
so failure preserves the previous sequence state.
2026-08-05 14:12:52 -04:00
Mitchell Hashimoto
54fe8e1885 macos: handled untrusted OSC8 hyperlinks more carefully (#13634)
OSC8 hyperlinks previously executed directly via the NSWorkspace opener
so a malicious application can just do whatever it wanted and trick the
user into opening something through Launch Services.

This PR notifies apprt of OSC8 hyperlinks so they can be handled
specially. In this PR, I added macOS-specific handling of OSC8 through a
variety of improvements:

  - Preview text is sanitized, so invisible Unicode characters now show.
- Questionable-looking URLs require confirmation to open, but a user can
confirm to open.
- Very questionable or definitely unsafe URLs are blocked with an alert
that only allows the user to copy the link. The alert also notifies the
user why.

This PR also adds an explicit `link-osc8` config (default true) that
users can use to disable osc8 completely.

## Demos

### Custom URL Schemes (Confirm)

<img width="1432" height="1110" alt="CleanShot 2026-08-05 at 10 25
57@2x"
src="https://github.com/user-attachments/assets/f7773ca2-3389-4749-a5c9-393ae097c044"
/>

### Invisible Characters (Block)

<img width="1432" height="1110" alt="CleanShot 2026-08-05 at 10 26
44@2x"
src="https://github.com/user-attachments/assets/bd2d0f33-f128-46e8-9bdb-227afecbb942"
/>

### Executable Target (Block)

<img width="1432" height="1110" alt="CleanShot 2026-08-05 at 10 27
31@2x"
src="https://github.com/user-attachments/assets/080c0524-2c8e-4931-892f-d2643a5d0d4e"
/>
2026-08-05 10:44:56 -07:00
Mitchell Hashimoto
77537c8065 macos: handled untrusted OSC8 hyperlinks more carefully
OSC8 hyperlinks previously executed directly via the NSWorkspace opener
so a malicious application can just do whatever it wanted and trick the
user into opening something through Launch Services.

This PR notifies apprt of OSC8 hyperlinks so they can be handled
specially. In this PR, I added macOS-specific handling of OSC8 through a
variety of improvements:

  - Preview text is sanitized, so invisible Unicode characters now show.
  - Questionable-looking URLs require confirmation to open, but a user
    can confirm to open.
  - Very questionable or definitely unsafe URLs are blocked with an 
    alert that only allows the user to copy the link. The alert also
    notifies the user why.
2026-08-05 10:22:28 -07:00
Mitchell Hashimoto
46767b5213 terminal: bound OSC and grapheme allocations (#13633)
Cap allocating OSC payloads at 8 MiB and retain at most 64 grapheme
suffix codepoints per cell. Our limits are generous compared to other
terminals and this prevents an easy DoS.

When the grapheme codepoint max is hit we just ignore any remainders.
This can result in real broken graphemes because Unicode spec is really
unbounded on them but for all practical use cases its reasonable.

Compared to other terminals:

| Terminal | OSC capture limit | Cell codepoints | 
| --- | ---: | ---: |
| Ghostty | 8 MiB | 65 |
| kitty | ~256 KiB ordinary | 24 |
| VTE | 4,096 scalars | 11 |
| xterm | 20 or 600 KB | 3 default, 6 max |
| Alacritty | unbounded | unbounded |
| WezTerm | unbounded | no explicit limit |
2026-08-05 09:52:11 -07:00
Mitchell Hashimoto
ad27c989a4 libghostty-vt: require opt-in for title reports (#13632)
Add an explicit libghostty-vt title-report option and keep CSI 21 t
disabled unless an embedder enables it.

Previously, registering the general PTY write callback also caused the
terminal to echo attacker-controlled window titles. This exposed
embedders to command injection after user interaction. Ghostty fixed
this a long time ago by making CSI 21 t an opt-in in the config. Do the
same but with our C/Zig API.
2026-08-05 09:32:45 -07:00
Mitchell Hashimoto
727b8a02f8 terminal: bound OSC and grapheme allocations
Cap allocating OSC payloads at 8 MiB and retain at most 64 grapheme
suffix codepoints per cell. Our limits are generous compared to other
terminals and this prevents an easy DoS.

When the grapheme codepoint max is hit we just ignore any remainders.
This can result in real broken graphemes because Unicode spec is really
unbounded on them but for all practical use cases its reasonable.

Compared to other terminals:

| Terminal | OSC capture limit | Cell codepoints |
| --- | ---: | ---: |
| Ghostty | 8 MiB | 65 |
| kitty | ~256 KiB ordinary | 24 |
| VTE | 4,096 scalars | 11 |
| xterm | 20 or 600 KB | 3 default, 6 max |
| Alacritty | unbounded | unbounded |
| WezTerm | unbounded | no explicit limit |
2026-08-05 09:30:24 -07:00
Mitchell Hashimoto
38e891e6c0 terminal: require opt-in for title reports
Add an explicit libghostty-vt title-report option and keep CSI 21 t
disabled unless an embedder enables it.

Previously, registering the general PTY write callback also caused the
terminal to echo attacker-controlled window titles. This exposed
embedders to command injection after user interaction.

Gate the response in the shared terminal stream, append the C API
option without renumbering existing values, and cover the default,
opt-in, and reset behavior in Zig and C API tests.
2026-08-05 09:17:03 -07:00
Mitchell Hashimoto
bd21ff153e terminal: avoid VS15 cursor underflow (#13631)
Handle VS15 width changes when the wide grapheme base is directly under
the cursor.

A zero cursor distance previously underflowed while locating the spacer
tail. Debug builds panicked and ReleaseFast computed an out-of-bounds
cell pointer before updating it.
2026-08-05 09:10:46 -07:00
Mitchell Hashimoto
fe98aef21c terminal: report DECECM as permanently reset (#12660)
Closes #12505 

This PR allows Ghostty to respond to DECRQM queries for DECECM with the
"permanently reset".

AI disclosure: I used Codex to help inspect the relevant code path and
explain the issue, but I reviewed and made the code changes myself.
2026-08-05 09:03:15 -07:00
Mitchell Hashimoto
33d34cf5ce terminal: avoid VS15 cursor underflow
Handle VS15 width changes when the wide grapheme base is directly under
the cursor. Cover both disabled wraparound and restored pending-wrap
cursor states.

A zero cursor distance previously underflowed while locating the spacer
tail. Debug builds panicked and ReleaseFast computed an out-of-bounds
cell pointer before updating it.

Find the spacer from the wide base instead of subtracting from the
cursor distance. Reposition the cursor from the base column and clamp it
to the active right margin.
2026-08-05 08:55:21 -07:00
Mitchell Hashimoto
dd035284c2 Kitty graphics protocol bugs (#13630)
Specifics in each commit message. This will be part of a security
advisory in 1.4.0 since these patches issues related to overflows, DoS,
unbounded memory allocation, etc.
2026-08-05 08:53:44 -07:00
Mitchell Hashimoto
402b9227de terminal/kitty: reclaim pruned placements
Reclaim pin-backed Kitty graphics placements after their tracked screen
content is pruned. Treat garbage pins as non-renderable until the next
placement command sweeps them.

Placements that scrolled beyond retained history previously remained in
the placement map and tracked-pin set. Long-running graphics output could
accumulate stale state, and remapped garbage pins could appear at an
unrelated fallback location.

Sweep garbage placements before growing the placement map, releasing each
tracked pin while preserving virtual placements. Return no geometry or
visible render position for garbage pins and cover both storage and C API
behavior with regression tests.
2026-08-05 08:37:45 -07:00
Mitchell Hashimoto
d0c516f8f3 terminal/kitty: release replaced placement pins
Release a Kitty graphics placement's tracked pin before replacement.

Repeated updates to an external placement previously leaked tracked pins.

Pass the owning screen to storage and deinitialize the old placement.
2026-08-05 08:28:13 -07:00
Mitchell Hashimoto
590d669c4a terminal/kitty: limit png decoder allocations
Limit individual allocator requests made by PNG decoders to the Kitty
graphics protocol's 400 MiB image ceiling. Add a reusable allocator
wrapper for callers that need per-request bounds.

PNG decoding previously used Wuffs' 4 GiB package limit and checked
the result only after allocation. A tiny PNG with oversized dimensions
could cause a multi-gigabyte RSS spike before being rejected.

Wrap decoder allocators with LimitedAllocator and translate limit
rejections to invalid image data while preserving genuine out-of-memory
errors. Add allocator boundary tests and regression coverage for a
crafted PNG below Wuffs' limit.
2026-08-05 08:24:42 -07:00
Mitchell Hashimoto
f766f303a7 terminal/kitty: validate shared memory ranges
Validate Kitty shared memory byte ranges before mapping and copying
image data. Interpret S as a byte count from O and preserve default
raw-image sizing.

Shared memory transmissions previously multiplied untrusted u32
dimensions before the limit check and sliced mappings with an unchecked
offset. Malformed commands could panic in safe builds or request a
wrapped allocation in fast builds.

Reject oversized dimensions before widening size arithmetic, derive
bounded ranges from the stat size, and enforce max_size before
constructing a slice. Add regression tests for explicit and implicit
offsets, out-of-bounds offsets, and maximum dimensions.
2026-08-05 08:20:41 -07:00
Mitchell Hashimoto
ec04900ab9 terminal/kitty: validate opened image file paths
Validate Kitty file transmissions against a canonical path derived from
the open file handle. Keep temporary file policy and cleanup keyed to
that handle path.

Path validation previously ran before opening, so a local cooperating
process could replace a symlink or directory entry and make Ghostty
read a blocklisted file.

Open the submitted path once, derive its canonical path from the handle,
and use the same handle for stat and reads. Add a regression test that
replaces a blocked symlink after open and verifies the pinned target is
still rejected.
2026-08-05 08:14:47 -07:00
Jon Parise
fb4c56159f core: transfer long key encoding buffer
The long-preedit fallback introduced in e95b1707c intentionally allocated
twice. The encoder wrote into an oversized caller-owned buffer and returned
only the written subslice, so transferring it required manually shrinking
the allocation or tracking its original capacity. The copy kept that rare
path simple.

The key encoder moved to std.Io.Writer.Allocating in 44496df899. Its
toOwnedSlice method handles shrinking and ownership transfer, remapping when
the allocator supports it and falling back to an allocation and copy when it
does not. Use it directly for WriteReq.alloc to remove the guaranteed second
allocation while preserving cleanup on failure.
2026-08-05 11:11:30 -04:00
Mitchell Hashimoto
e5840bb9ba terminal/kitty: harden placement geometry
Treat Kitty placement dimensions and offsets as untrusted values when
calculating pixel, grid, and rectangle geometry. Saturate results that
do not fit and return no rectangle when missing pixel metrics produces
an empty grid.

Unchecked u32 arithmetic previously panicked in safe builds and wrapped
in fast builds. A zero row count could underflow into a maximum-size
page traversal, while maximum dimensions could spin cursor movement or
overflow render visibility calculations.

Use checked integer scaling instead of floating-point casts, saturating
arithmetic for extents and cursor columns, and bound off-screen cursor
work to the terminal row count. Compute C API visibility in i64 and
cover maximum protocol values in storage, execution, and render-info
tests.
2026-08-05 08:07:25 -07:00
Mitchell Hashimoto
af2faa311a terminal/kitty: restrict temporary image file paths
Require temporary image file paths to match complete directory
components when checking /tmp, /dev/shm, the configured temporary
directory, and its resolved path.

The previous byte-prefix checks accepted similarly named sibling
directories such as /tmpX. A temporary-file transmission could read
and unlink a file outside the permitted temporary directories.

Add a component-boundary helper and regression coverage for built-in
and configured directory prefixes. An integration test also verifies
that a rejected file remains on disk.
2026-08-05 08:07:25 -07:00
Mitchell Hashimoto
d866fa4553 terminal/kitty: fix graphics range deletion
Use inclusive image ID bounds for the Kitty graphics protocol range 
delete operation.

Range deletion previously joined the lower and upper bound checks with or, 
which matched every placement for any valid range. A targeted delete could 
therefore remove every graphics placement.

Join the bounds with and and update the lowercase and uppercase range tests 
to keep placements below and above the selected interval.
2026-08-05 08:05:27 -07:00
Mitchell Hashimoto
3f8b99bb68 terminal: print repeated characters through printSlice (#13625)
`printRepeat` (CSI `b`, repeat the previous character N times) calls
`print()` once per repeat, so something like `\x1b[2000b` ran grapheme
checks, width lookups, wrap handling, and the integrity assert 2000
times for what is usually the same character on the same row.

`Terminal.print` was 24% of samples on a REP-heavy micro benchmark.

This PR just aims to add a fast path by introducing a chunking
mechanism. anything that needs care (insert mode, grapheme clustering,
hyperlinks) still falls back to per-codepoint print() inside printSlice,
so behavior *should* stay unchanged.

Some profiling data:

Generated with some plain stupid logic:

```py
D = "benchdata"
parts, total = [], 0
while total < 40_000_000:
    line = "x" + "\x1b[80b" + "y" + "\x1b[35b" + "\r\n"
    parts.append(line); total += len(line)
open(f"{D}/rep.bin", "wb").write("".join(parts).encode())
```
**macOS (hyperfine, 15 runs, warmup 3):**

| | mean |
|---|---|
| before | 2.360 s |
| after | 1.166 s |


And now the really interesting and promising stuff

**Linux, 24-core NixOS x86_64 (poop, 6s sampling):**

| | wall_time | instructions | branch_misses | peak_rss |
|---|---|---|---|---|
| before | 1.51 s | 50.9 G | 9.41 M | 6.82 MB |
| after | 562 ms | 9.07 G | 114 K | 6.74 MB |
2026-08-05 06:56:01 -07:00
Uzair Aftab
5b70f208bc terminal: print repeated characters through printSlice
While doing some work on my tmux fork I noticed multiple parts of
libghostty-vt was slower than tmux equivalents(isolated). Turns out they
do some smart stuff there.

printRepeat called print() once per repeat, so something like \x1b[2000b
ran grapheme checks, width lookups, wrap handling, etc etc 2000 times.

printSlice is already documented as semantically identical to
calling print per codepoint, so this just feeds the repeated
codepoint through it in 4096-entry stack chunks. Simple runs take
the batched fast path, and anything that needs care falls back to the
previous behaviour.
2026-08-05 15:43:25 +02:00
Leah Amelia Chen
f17b425aac surface: use id instead of intFromPtr
intFromPtr was always a hack that we had to use before we had stable
surface IDs, and it was always slightly unsafe. Let's do it properly
this time.
2026-08-05 14:40:45 +08:00
Leah Amelia Chen
9e30f70f23 gtk: do not set bell ringing if already focused (#13597) 2026-08-05 14:18:45 +08:00
Mitchell Hashimoto
a00d155e9c config: limit command translations to GTK
Fixes #13614

Only translate the shared default commands when building the GTK runtime. 
macOS now use the source strings until we do broader localization.
2026-08-04 15:23:09 -07:00
Mitchell Hashimoto
760a250029 config: formatted action should be parsable into the original (#13609)
This fixes the issue where an action with string as it's parameter is
not working correctly in CommandPalette, found in #9671. For example:

```
command-palette-entry = title:"Set Ghostty Title",description:test sending text.,action:set_tab_title:👻
keybind=cmd+r=set_tab_title:👻
```

Keybind works perfectly, but the title is escaped when triggering in
CommandPalette.

> Introduced in
[#8873](https://github.com/ghostty-org/ghostty/pull/8873/changes#diff-9e7936787320bcf70e332c868125039d8c0a7f96c4a88f2af0af21d952c6830dR1216),
I tested the fixed issue as well, the following config still parses
correctly, mentioned in
https://github.com/ghostty-org/ghostty/issues/8849#issuecomment-3322018212.

```
command-palette-entry = title:Focus Split: Next,description:"Focus the next split, if any.",action:goto_split:next
```

Also `ghostty +show-config` now will also output the readable strings as
well.
<img width="1078" height="428" alt="image"
src="https://github.com/user-attachments/assets/f9dc1447-7b4e-44f4-8362-b54f4d805c7a"
/>
2026-08-04 11:19:37 -07:00
Lukas
b67f8ef51d config: don't escape Binding.Action.String 2026-08-04 19:49:37 +02:00
Lukas
8cfbaf545a config: formatted action should be parsable into the original 2026-08-04 19:49:37 +02:00
Uzair Aftab
02f34835ea datastruct: remove unused LRU implementation 2026-08-04 19:46:26 +02:00
Mitchell Hashimoto
48d85eaeb0 core: fix mouse reporting mutex lock 2026-08-04 09:10:14 -07:00
Mitchell Hashimoto
ca56412bf2 gtk: forward middle click to TUIs with mouse reporting (#13108)
Fix for Issue #12940 
I actually do not know if this has already been resolved and the issue
is just still open. Either way, here's a fix. Now we run a check to see
if the current program is accepting mouse events before discarding the
middle click.
2026-08-04 08:53:39 -07:00
Mitchell Hashimoto
363e6e6b42 i18n: translation support for command palete (#11641)
Most obvious next step in translating Ghostty is the command palette.
Added support for i18n.N_ (https://docs.gtk.org/glib/i18n.html#macros).
Made a Latvian translation for the command palette to test. Codex did
bulk of the translations but I verified them.
2026-08-04 06:43:38 -07:00
Jon Parise
1f6e26642e config: clarify cursor-click-to-move's relation to shell-integration (#13589) 2026-08-04 08:54:06 -04:00
Lauri Tirkkonen
85083d23cd config: clarify cursor-click-to-move's relation to shell-integration
the original wording is a bit confusing; I thought cursor-click-to-move
required shell-integration to be enabled, and was confused when the
mouse was still moving my cursor in fish even with
shell-integration=none.
2026-08-04 20:59:52 +09:00
Lauri Tirkkonen
f5419b9b15 gtk: do not set bell ringing if already focused 2026-08-04 20:40:32 +09:00
Ēriks Remess
1125fa26df i18n: note about i18n.N_ usage and @inComptime() return msgid for i18n._ 2026-08-04 11:04:29 +03:00
Ēriks Remess
df23bef0e9 i18n: translation support for command palete and Latvian translation for it 2026-08-04 11:04:29 +03:00
Mitchell Hashimoto
b9d88292be terminal: speed up formatting anywhere from ~1.5x to ~8x (#13587)
This PR speeds up our formatting (plain text, html, and VT) by anywhere
from ~1.5x to ~8x.

The formatter is the hot path behind multiple features in Ghostty GUI:
clipboard copy (plain/VT/HTML), `write_screen_file`, `selectionString`,
and terminal search sliding window. It's also the hot path for
libghostty users, namely people like
[zmx](https://github.com/neurosnap/zmx) which utilize the VT formatter
to restore a terminal.

This PR also adds the benchmarking infrastructure for the formatter.

## How

- **Fast cell-run optimization.** For simple cells (single codepoint, no
style/hyperlink) we encode them as a single run rather than one at a
time.
- **Make some arguments comptime.** Generates more code but benchmarks
show it improves things, specifically for per-format switches that we do
a LOT.
- **Interned style id fast path.** Styles are interned per page, so id
equality implies style equality. We track the id of the active style and
skip the per-cell `Style` copy + `eql` when it matches.
- **Fast printing.** Avoid `std.fmt` where possible and assemble
integers, RGB colors, codepoints in fixed-width buffers with a single
memcpy. This was extracted partially to `fastprint.zig` so we can reuse
it.
- **Avoid double-formatting for tracked pins.** Previously we formatted
twice (once through a `Discarding` writer to count bytes) for pin maps.
Now I'm smarter about it and do a single pass.

## Performance

All on my machine, 80x24 terminal, 10K lines of scrollback.

| workload              | main     | this PR  | speedup | throughput |
| --------------------- | -------- | -------- | ------- | ---------- |
| plain / plain         | 5.74 ms  | 1.67 ms  | 3.4x    | 364 MB/s   |
| plain / vt            | 6.46 ms  | 1.04 ms  | 6.2x    | 596 MB/s   |
| plain / html          | 7.39 ms  | 2.32 ms  | 3.2x    | 308 MB/s   |
| unicode / plain       | 9.74 ms  | 5.42 ms  | 1.8x    | 276 MB/s   |
| unicode / vt          | 10.42 ms | 5.53 ms  | 1.9x    | 275 MB/s   |
| unicode / html        | 12.53 ms | 7.35 ms  | 1.7x    | 509 MB/s   |
| styled / plain        | 5.65 ms  | 1.69 ms  | 3.4x    | 360 MB/s   |
| styled / vt           | 9.07 ms  | 4.20 ms  | 2.2x    | 409 MB/s   |
| styled / html         | 10.78 ms | 6.64 ms  | 1.6x    | 740 MB/s   |
| mixed / plain         | 8.59 ms  | 4.81 ms  | 1.8x    | 226 MB/s   |
| mixed / vt            | 11.25 ms | 6.65 ms  | 1.7x    | 250 MB/s   |
| mixed / html          | 14.47 ms | 10.52 ms | 1.4x    | 414 MB/s   |
| wrapped / plain       | 7.30 ms  | 1.11 ms  | 6.6x    | 733 MB/s   |
| wrapped / vt          | 8.14 ms  | 1.04 ms  | 7.8x    | 789 MB/s   |
| wrapped / html        | 9.00 ms  | 2.12 ms  | 4.2x    | 465 MB/s   |
| pin-map / plain       | 12.51 ms | 3.80 ms  | 3.3x    |            |
| pin-map / vt          | 13.12 ms | 2.99 ms  | 4.4x    |            |
| active screen / plain | 12.5 µs  | 2.7 µs   | 4.6x    |            |
| active screen / vt    | 18.4 µs  | 6.8 µs   | 2.7x    |            |

Workloads: 
- `plain` is ASCII lines
- `unicode` is 2/3/4-byte codepoints with 10% grapheme clusters
- `styled` is heavy SGR churn
- `mixed` is styles + Unicode + hyperlinks
-  `wrapped` is a continuous soft-wrapped stream
- `pin-map`/`active screen` are the selectionString/search-style and
visible-screen-only cases respectively.
2026-08-03 20:56:46 -07:00
Mitchell Hashimoto
e69dc2bee8 renderer: reset terminal state cleanup counter (#13585)
Reset the frame counter whenever retained render state is cleared.
Otherwise, every subsequent frame will be deinitialized and rebuilt.
2026-08-03 20:55:47 -07:00
Mitchell Hashimoto
74b426458b gtk: use native blur on GTK 4.23.3+ (#13586)
Finally, what was previously thought impossible, is now possible.
The blur region itself is far more accurate than what we can conjure up
on our own, and in a much more finetuned and detailed way too.
Thank you, GTK devs!

Closes #13581
2026-08-03 20:55:14 -07:00
Mitchell Hashimoto
2ed67cadd1 terminal: redesign pin map for formatter 2026-08-03 20:50:33 -07:00
Mitchell Hashimoto
d4391ff835 fastprint: fix compile errors 2026-08-03 20:10:19 -07:00
Mitchell Hashimoto
79aa256fa2 terminal: speed up formatter mostly by avoiding std.fmt 2026-08-03 19:59:28 -07:00
Mitchell Hashimoto
8838c37f4c terminal: fast print styles 2026-08-03 19:55:54 -07:00
Mitchell Hashimoto
85b1dd0dd9 benchmark: formatter benchmark 2026-08-03 19:50:35 -07:00