kitty/tools
Kovid Goyal d6f038691c
Parse SGR codes when wrapping text exactly as kitty does
Port the CSI tokenizer and SGR grouping logic from vt-parser.c and
cursor.c so that empty parameters terminated by a semicolon are treated
as zero everywhere, not only in extended colors. This fixes stale
attributes being re-applied on wrapped lines for codes such as ;m, ;31m
and 4:;31m. Also match kitty for codes with invalid characters or
private/intermediate bytes (ignored entirely), misplaced sub-parameters,
mixed colon/semicolon colors, out of range color indices, SGR 21 and
clamped underline styles.

Closes #10895
2026-11-19 09:03:09 +05:30
..
cli Cleanup previous PR 2026-11-14 08:29:17 +05:30
cmd Fix animated mouse pointers restarting on every mouse move 2026-11-10 08:49:23 +05:30
config Do not stay in the escape state after a backslash-newline in StringLiteral 2026-09-29 12:27:24 -04:00
crypto
disk_cache Cleanup previous PR 2026-11-17 19:11:40 +05:30
fzf
highlight
icons More work on the DnD kitten 2026-05-05 10:49:56 +05:30
ignorefiles choose-files: Do not crash on a bare "!" line in an ignore file 2026-09-25 14:36:37 -04:00
rsync Modernize Go code 2026-03-21 08:41:47 +05:30
simdstring ... 2026-03-12 13:48:20 +05:30
themes ssh kitten: Allow per-host color schemes for dark and light mode 2026-10-23 09:37:50 +05:30
tty tty: take the TCSETS ioctl numbers from x/sys/unix 2026-11-03 11:03:09 +01:00
tui Fix animated mouse pointers restarting on every mouse move 2026-11-10 08:49:23 +05:30
unicode_names Unicode input kitten: Fix searching by name not finding some characters 2026-11-14 08:23:25 +05:30
utils Parse SGR codes when wrapping text exactly as kitty does 2026-11-19 09:03:09 +05:30
vt
watch Fix empty kitty config dir causing watching for changes to kitty.conf failing 2026-09-02 09:36:03 +05:30
wcswidth Cleanup previous PR and make VS15 on explicit width cell behavior consistent with VS16 2026-09-18 22:59:19 +05:30
README.rst

This folder contains library and utility code for the various "kittens". Small
terminal programs compiled statically for doing things like kitty remote
control, icat etc. These are often re-implementations of earlier kittens that
were written in Python.