mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-16 13:08:25 +00:00
If you live in the terminal, kitty is made for you! Cross-platform, fast, feature-rich, GPU based.
https://sw.kovidgoyal.net/kitty/
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. |
||
|---|---|---|
| .github | ||
| 3rdparty | ||
| bypy | ||
| docs | ||
| gen | ||
| glad | ||
| glfw | ||
| kittens | ||
| kitty | ||
| kitty_tests | ||
| logo | ||
| shell-integration | ||
| terminfo | ||
| tools | ||
| .clang-format | ||
| .clang-format-for-slang | ||
| .clang-format-ignore | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| __main__.py | ||
| autoformat | ||
| benchmark.py | ||
| Brewfile | ||
| build-terminfo | ||
| CONTRIBUTING.md | ||
| count-lines-of-code | ||
| dev.sh | ||
| embeds.go | ||
| go.mod | ||
| go.sum | ||
| INSTALL.md | ||
| key_encoding.json | ||
| LICENSE | ||
| local-agent.md | ||
| Makefile | ||
| publish.py | ||
| pyproject.toml | ||
| README.asciidoc | ||
| rsync-and-build.sh | ||
| SECURITY.md | ||
| session.vim | ||
| setup.py | ||
| shell.nix | ||
| staticcheck.conf | ||
| test.py | ||
| update-on-ox | ||
= 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"]