mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-19 14:45:29 +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/
Cells containing a codepoint from the registration block that had a registered glyph when they were printed are rendered with that glyph, into the area the character occupies: its cell, the cells given to it by the text sizing protocol, or two cells when it is followed by a space and the width of its viewBox when fit to the cell height is more than one cell. The glyph is bound to the text when it is printed, by storing a reference to it in the text cache entry of the cell. Changing or clearing a registration affects only text printed afterwards, so programs using the same codepoints do not change each other's output and registering never requires re-rendering lines. Bound entries are kept in a separate map so that other text is not slowed down. Glyphs are interned by a seeded hash of their content. Glyphs that use only the foreground color are alpha masks and glyphs that use only fixed colors are colored sprites. Glyphs that mix them are a colored sprite followed in the sprite map by a sprite with the weight of the foreground color, which the cell shader combines with the foreground color, so that selection, cursor and other foreground color changes apply to them exactly. Sprites of a glyph are freed when the glyph is, which happens only when no cell uses it, and are reused. Each window can keep alive a limited number and size of glyphs, beyond which registration fails with no_space, so a program that keeps registering and printing new glyphs cannot exhaust memory or sprites for other windows. |
||
|---|---|---|
| .github | ||
| 3rdparty | ||
| bypy | ||
| docs | ||
| gen | ||
| glad | ||
| glfw | ||
| gpu | ||
| 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 | ||
| comparative_benchmark.py | ||
| 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"]