If you live in the terminal, kitty is made for you! Cross-platform, fast, feature-rich, GPU based. https://sw.kovidgoyal.net/kitty/
Find a file
Kovid Goyal cfd2b23dca
Fix out of bounds accesses with partially scrolled off multiline chars
Scrolling down (CSI T) could cut off the lower rows of a scale > 1 text
sizing character at the bottom of the screen. Adding a combining char to
it then wrote past the end of the line buffer in add_combining_char and
rewrapping on resize read past the end of the line buffer in
copy_multiline_extra_lines.

Multiline chars that are cut off at the edge of the screen or of the
history buffer, by scrolling or by inserting lines, are partially
scrolled off and are rendered as such, so they are kept. Code walking the rows of a multiline char now only visits
the adjacent rows that actually continue the char, rather than trusting
the y and scale of a cell, so it stays in bounds and does not modify
unrelated cells for partial or torn chars.

Chars that would be torn, i.e. left with rows from unrelated lines
adjacent to their remaining part, are removed. This happens when
scrolling with margins, when a partial char is moved away from the edge
of the screen by scrolling or deleting lines, when inserting lines pushes
the lower rows of a char straddling the bottom margin out of the scroll
region, and when a partial char
cut off at the bottom is no longer at the bottom after a resize. Rewrap
drops partial chars, as it already did for chars with missing top rows,
placing cursors that were on them where the char would have been.

The checks for torn chars are skipped unless a multiline char has been
drawn in the screen, and chars cut off at the bottom of the screen,
which can only be created by scrolling down or inserting lines, are
tracked so that
linefeeds do not need to scan for them.

A hard reset now clears the alternate screen as well, so that the flag
tracking whether multiline chars have been used can be reset.

Also fix the lower rows of multiline chars being lost on rewrap when the
lines after the char were continuations that fit on its first row.
2026-11-13 10:43:13 +05:30
.github Ignore inapplicable CVE 2026-11-12 13:12:33 +05:30
3rdparty autoformat 2026-08-05 05:32:56 +05:30
bypy Fix stripping broken on macOS freeze builds 2026-11-05 10:38:33 +05:30
docs Fix out of bounds accesses with partially scrolled off multiline chars 2026-11-13 10:43:13 +05:30
gen Add nightly version to version string for nightly builds. Fixes #10751 2026-10-27 10:43:51 +05:30
glad autoformat 2026-08-05 05:32:56 +05:30
glfw X11: Use a single process wide X error handler 2026-11-09 09:01:19 +05:30
kittens dnd kitten: Fix failure to start in a non-writable directory 2026-11-12 18:54:46 +05:30
kitty Fix out of bounds accesses with partially scrolled off multiline chars 2026-11-13 10:43:13 +05:30
kitty_tests Fix out of bounds accesses with partially scrolled off multiline chars 2026-11-13 10:43:13 +05:30
logo autoformat 2026-08-05 05:32:56 +05:30
shell-integration ssh kitten: Fix remote directories being created world writable 2026-11-10 08:15:26 +05:30
terminfo
tools Cleanup previous PR 2026-11-11 21:26:01 +05:30
.clang-format ... 2026-08-05 20:01:16 +05:30
.clang-format-for-slang Prepare for autoformat of .slang files 2026-08-10 22:03:38 +05:30
.clang-format-ignore Try newer clang-format installed via pip 2026-08-05 20:15:07 +05:30
.editorconfig
.gitattributes Load GLSL binding information at runtime rather than writing it to a generated C header 2026-08-05 05:32:55 +05:30
.gitignore Dont exclude all leading dor files from rsync only the two cache dirs 2026-09-28 07:49:14 +05:30
__main__.py autoformat 2026-08-05 05:32:56 +05:30
autoformat Don't autoformat the dependencies folder 2026-10-19 11:21:00 -05:00
benchmark.py More detail for on_quit events and a new on_cwd change event 2026-11-12 11:29:08 +05:30
Brewfile
build-terminfo
CONTRIBUTING.md ... 2026-08-26 06:01:00 +05:30
count-lines-of-code Get count-lines-of-code to also count .slang files (as HLSL) 2026-08-12 10:30:35 +05:30
dev.sh
embeds.go
go.mod Bump Go toolchain to 1.26.11 2026-11-11 12:16:22 +08:00
go.sum Bump the all-go-deps group with 3 updates 2026-11-09 03:42:53 +00:00
INSTALL.md
key_encoding.json
LICENSE
local-agent.md ... 2026-08-07 09:26:06 +05:30
Makefile
publish.py ... 2026-10-27 13:15:20 +05:30
pyproject.toml autoformat 2026-08-05 07:16:05 +05:30
README.asciidoc
rsync-and-build.sh Dont exclude all leading dor files from rsync only the two cache dirs 2026-09-28 07:49:14 +05:30
SECURITY.md
session.vim
setup.py Add nightly version to version string for nightly builds. Fixes #10751 2026-10-27 10:43:51 +05:30
shell.nix ... 2026-08-09 22:12:20 +05:30
staticcheck.conf
test.py
update-on-ox use diskutil instead of hdiutil in update-on-ox as the latter is deprecated in macOS 27. Sigh. 2026-09-24 09:25:37 +05:30

= kitty - the fast, feature-rich, cross-platform, GPU based terminal

If you live in the terminal, *kitty* is made for **you**!

See https://sw.kovidgoyal.net/kitty/[the kitty website].

image:https://github.com/kovidgoyal/kitty/workflows/CI/badge.svg["Build status", link="https://github.com/kovidgoyal/kitty/actions?query=workflow%3ACI"]

https://sw.kovidgoyal.net/kitty/faq/[Frequently Asked Questions]

To ask other questions about kitty usage, use either the https://github.com/kovidgoyal/kitty/discussions/[discussions on GitHub] or the
https://www.reddit.com/r/KittyTerminal[Reddit community]

Packaging status in various repositories:

image:https://repology.org/badge/vertical-allrepos/kitty-terminal.svg?columns=3&header=kitty["Packaging status", link="https://repology.org/project/kitty-terminal/versions"]