Commit graph

1602 commits

Author SHA1 Message Date
rudolf-blue
18bddffcca Raise the maximum font size and fix the legacy zoom limit
The ceiling in change_font_size is ten times the configured font_size, so
the largest size you can reach depends on the size you configured. With
font_size 6 zooming stops at 60pt, while font_size 20 reaches 200pt. That
is backwards: a small configured font is if anything a reason to want a
larger temporary zoom, not a smaller one.

Use the larger of that multiple and an absolute 256pt. No existing setup
loses range, since the multiple still wins whenever it is the bigger of
the two. The bounds and the clamp move into options/utils.py so the
numbers are in one place and can be tested directly.

increase_font_size also had its own cap of five times font_size. That was
the old limit, missed when 25d8d9fe6 raised change_font_size to ten, and
because the wrapper clamps before delegating, the stale bound is the one
that wins. Both legacy wrappers can simply drop their bounds: they go
through change_font_size, which already clamps.
2026-09-07 19:41:08 -04:00
Kovid Goyal
49b7bf6646
Fix #10434
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
2026-09-04 03:58:20 +05:30
Kovid Goyal
ede47d2f93
file transfer protocol: harden against malicious clients planting symlinks
This is actually not a security boundary for this protocol. Since it is
explicitly *not* designed to be proof against malicious clients.
However, to avoid more AI generated security reports against it...
2026-09-01 22:23:24 +05:30
Kovid Goyal
03fbdad855
Color control protocol: Respond to unknown field names safely using base64 encoding 2026-09-01 21:20:04 +05:30
Kovid Goyal
398fa49084
Skip test inapplicable on macOS 2026-09-01 20:28:26 +05:30
Kovid Goyal
3281919056
ssh kitten: Verify owner and permissions of SHM memory used for askpass
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
2026-09-01 20:14:03 +05:30
NightWatcher
376e72ded8 Add configurable rounded window borders 2026-08-29 22:30:04 +08:00
Kovid Goyal
64fa6ff111
Speed up pixel compositing with SIMD vectorization
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
Alpha blending of graphics protocol images and animation frames is
2-3.5x faster and glyph alpha masks are composited onto canvases using
the same vectorized primitives
2026-08-29 09:53:38 +05:30
Hassan Raza
bf7d908e3f
Parse goto_session options when discovering sessions 2026-08-28 16:21:17 +05:00
Hassan Raza
bd2d09e467
Fix EOF handling for empty DnD transfers 2026-08-28 14:01:04 +05:00
Hassan Raza
9c557f917b
Fix explicit stdin sources in the DnD kitten 2026-08-28 13:19:25 +05:00
Hassan Raza
e31a5e4e07
Fix empty hints selection handling 2026-08-28 11:49:17 +05:00
Hassan Raza
99fb1b8aca
Fix notification close mode 2026-08-28 11:20:05 +05:00
Hassan Raza
1229f19f6d
Restore hints named-group program arguments 2026-08-27 21:55:56 +05:00
Hassan Raza
4a19654bc2
Fix composed frame metadata 2026-08-27 15:09:14 +05:00
Kovid Goyal
0200d1c22b
Add bounds checking to a couple of functions
This is not strictly necessary as their callers already validate bounds,
however, I have now got two separate false security reports for this so
rather than waste my time responding to these, just add the bounds
checking.
2026-08-26 12:25:05 +05:30
Kovid Goyal
479872838f
clipboard protocol: Specify handling of invalid base64 data
Fixes #10401
2026-08-25 10:12:25 +05:30
Kovid Goyal
458421af46
Clipboard: Tighten up invalid input error handling
Fixes #10400
2026-08-25 09:37:05 +05:30
Kovid Goyal
32ea104192
clipboard: Inform clients of too much data
Fixes #10399
2026-08-25 09:19:46 +05:30
Kovid Goyal
77630f3a67
Fix random test failure when running in parallel on macOS 2026-08-23 20:39:43 +05:30
Kovid Goyal
6b5bdca90d
Avoid extra copy of image data into disk cache
Also fix a rare race and reduce memory consumption for transient images
2026-08-23 19:41:15 +05:30
Kovid Goyal
7616cfe854
Graphics: Make reading images robust against clients that truncate files that are being read by kitty 2026-08-23 17:05:06 +05:30
Kovid Goyal
393f0c720b
fix test failure on macOS 2026-08-23 10:53:56 +05:30
Kovid Goyal
554908ed0b
Drag and drop protocol: Deny drag sources that send identically named symlink/dir entries with an appropriate error 2026-08-23 10:01:35 +05:30
Kovid Goyal
fb862c019b
... 2026-08-23 09:30:28 +05:30
Kovid Goyal
d894ac8c1d
Follow libpng's documented contract 2026-08-23 09:24:02 +05:30
Kovid Goyal
7d2fbaadcc
Text sizing protocol: Fix a buffer overflow
When a natural width (no explicit ``w`` key) text sizing escape code
contains a grapheme cluster longer than four codepoints
2026-08-23 07:52:17 +05:30
Kovid Goyal
5f04193347
Merge branch 'fix/small-typos' of https://github.com/zaveshaa/kitty 2026-08-23 07:39:25 +05:30
Kovid Goyal
026d11f517
Drag and drop protocol: deny requests for drag data made before the user has actually dropped something onto the window 2026-08-23 07:34:35 +05:30
zaveshaa
15ceaac34b Fix doubled words in docs and a test comment 2026-08-22 23:10:54 +03:00
Kovid Goyal
9475a58f0b
autoformat 2026-08-22 13:01:01 +05:30
bjohas
dbabd12ba6 Style IME pre-edit text with italics and a dashed underline
Pre-edit text was drawn in reverse video, which is a solid inverted block
moving through the line as you compose. Draw it as italic with a dashed
underline in the highlight color instead.

Underline rather than reverse video is what other terminals do: VTE renders the
pre-edit run with the input method's own attributes and marks only the cursored
cell distinctly, and foot underlines the run explicitly, excluding the part
under the cursor. Dashed avoids the underline styles applications already use:
curly for spell checking and straight for hyperlinks, which is the collision
that made reverse video look like the safer choice.

The styling is applied to the overlay's own cursor and restored afterwards,
alongside the wrap, cursor-visibility and insert-replace modes already saved
there. The previous code toggled reverse with XOR, which restored itself; the
three new attributes are saved and put back explicitly.

Closes #10382
2026-08-22 07:22:55 +01:00
Kovid Goyal
d805e28aad
Fix handling of a=f chunked loading 2026-08-21 10:46:43 +05:30
Kovid Goyal
f5b4722c68
Fix incorrect key being used for animation compose
Regression in 0.45.0
Fixes #10379
2026-08-21 10:31:17 +05:30
Kovid Goyal
5bdbf2676b
Graphics: clipping against page margins on scroll
Fixes #10377
2026-08-21 09:16:22 +05:30
Kovid Goyal
0ecb10d158
Add AVX 512 implementations for remaining SIMD functions 2026-08-18 09:03:29 +05:30
Kovid Goyal
46379d4e0e
Another 10% speedup for printable ascii throughput 2026-08-17 07:14:40 +05:30
Kovid Goyal
07ea7583ac
Improve performance of SIMD UTF-8 decoding
Optimise the AVX 2 implementation reducing number of operations per block
and also add an AVX-512 implementation used when the CPU supports it at
runtime.
2026-08-16 20:25:03 +05:30
Kovid Goyal
e62ec6d540
Throughput improvements when processing large blocks of text
Mostly comes from detecting the case of runs of ASCII printable
characters and using a special fast path for them. Improves benchmarks
as per benchmark.py by 15-30% for text heavy workloads
2026-08-16 17:47:56 +05:30
Hassan Raza
bf18c2b8c1
Fix Bash SSH hostname detection 2026-08-13 07:55:42 +05:00
Kovid Goyal
48625a824d
Remove incremental linking test. setup is not available in all contexts where tests run and this functionality isnt important enough to warrant a test anyway 2026-08-13 08:14:28 +05:30
Hassan Raza
9bbb900e6a
Skip disabled Bash command hook 2026-08-12 20:02:47 +05:00
Hassan Raza
baa9a2ecba
Complete session file completion 2026-08-12 19:15:52 +05:00
Kovid Goyal
29d8b45594
Query go itself for its cache directories
Fixes test suite causing a full rebuild on every run on macOS
2026-08-12 19:06:45 +05:30
Kovid Goyal
46460cbb29
Merge branch 'fix/relink-command-changes' of https://github.com/M-Hassan-Raza/kitty 2026-08-12 18:41:42 +05:30
Kovid Goyal
dcbffe3fe0
Cleanup all_fonts_map() invocation to be once per worker process only and not in master process when using execed test workers 2026-08-12 17:39:03 +05:30
Hassan Raza
111cd86f61
Relink when linker commands change 2026-08-12 16:21:24 +05:00
Kovid Goyal
00a5ca54ef
Cleanup test worker launch code 2026-08-12 16:01:31 +05:30
Kovid Goyal
185de897b4
Run tests in execed workers rather than forked workers on macOS to ensure there are no issues form CoreFoundation libraries not liking fork + threads
Fixes #10349
2026-08-12 15:53:22 +05:30
Kovid Goyal
f047fc82d5
Report python test worker failures separately from test failures 2026-08-12 15:29:40 +05:30