kitty/docs
Kovid Goyal 9bb5e06853
Cleanup previous PR
Follow up to the merge of PR #10560 which skips input_delay when less
than 1 KiB of program output is pending.

Fix a data race: the I/O thread called
vt_parser_pending_input_is_interactive() which read read.pos under the
parser lock, but the main thread modifies read.pos without the lock
while parsing, so taking the lock on one side only did not protect it.
Instead, vt_parser_commit_write() now returns whether the pending input
is small, computed from read.sz and write.pending, which are only
modified with the lock held. This may overestimate while a parse is in
progress or when an incomplete escape code is retained, in which case
we simply fall back to the normal input_delay behavior. It also saves a
lock/unlock cycle per read in the I/O thread.

Bound the number of early main loop wakeups: since render() bypasses
repaint_delay whenever input was read, input_delay was the effective
cap on parse/render frequency for streaming output. Waking the main
loop on every small read removed that cap entirely for programs that
emit a continuous stream of small writes, costing CPU and increasing
the chance of drawing partial screen updates. Now an early wakeup is
only allowed if the previous wakeup was not itself early, so typed
character echo is still delivered immediately while streams of small
writes get at most two wakeups per input_delay.

Replace the magic 1024 with SMALL_PENDING_INPUT_THRESHOLD, rename
pending_input_is_interactive() to pending_input_is_small() since the
check has nothing to do with interactivity, clarify the input_delay
option documentation and add a changelog entry.
2026-09-28 11:44:03 +05:30
..
_static preserve scroll position when opening and closing vdeo popups 2026-08-10 20:41:32 +05:30
_templates
kittens Nicer error handling for failure to launch panels 2026-09-26 07:37:58 +05:30
screenshots Cleanup previous PR 2026-03-23 08:54:57 +05:30
actions.rst Cleanup previous PR 2026-03-23 08:54:57 +05:30
basic.rst Remove shift from next tab shortcut 2026-05-06 13:11:07 +02:00
binary.rst
build.rst ... 2026-08-05 05:32:53 +05:30
changelog.rst Cleanup previous PR 2026-09-28 11:44:03 +05:30
clipboard.rst clipboard protocol: Specify handling of invalid base64 data 2026-08-25 10:12:25 +05:30
color-stack.rst Color control protocol: Respond to unknown field names safely using base64 encoding 2026-09-01 21:20:04 +05:30
conf.py ... 2026-09-04 06:35:44 +05:30
conf.rst Implement auto reload of config 2026-04-16 14:41:29 +05:30
custom-shaders.rst Cleanup previous PR on motion blur 2026-09-26 12:36:01 +05:30
deccara.rst
desktop-notifications.rst
dnd-protocol.rst Add a note about text/uri-list lifetime 2026-09-02 10:14:32 +05:30
extract-rst-targets.py autoformat 2026-08-05 05:32:56 +05:30
faq.rst Switch from sphinx-inline-tabs to sphinx-design 2026-08-09 14:31:33 +05:30
file-transfer-protocol.rst
glossary.rst Update changelog 2026-08-18 08:04:48 +05:30
graphics-protocol.rst Graphics protocol: Fix file descriptor leak that can be triggered by malicious clients 2026-09-14 21:03:15 +05:30
index.rst Switch from sphinx-inline-tabs to sphinx-design 2026-08-09 14:31:33 +05:30
installer.sh Also use diskutil in a couple more scripts 2026-09-24 09:32:05 +05:30
integrations.rst awrit has been abandoned replace with terminal-browser 2026-08-28 21:42:53 +05:30
intro_vid.rst
invocation.rst
keyboard-protocol.rst Add additional implementations of the keyboard protocol 2026-09-14 16:30:58 -05:00
kittens_intro.rst Docs for the dnd kitten 2026-05-06 08:12:00 +05:30
launch.rst Implement on_quit event for global watchers 2026-03-17 08:37:30 +05:30
layouts.rst Splits: Resize adjacent regions consistently when dragging dividers 2026-09-22 17:09:21 +08:00
Makefile
mapping.rst fix #10490 2026-09-17 14:22:59 +05:30
marks.rst
misc-protocol.rst
multiple-cursors-protocol.rst
notifications.py autoformat 2026-08-05 05:32:56 +05:30
open_actions.rst autoformat 2026-08-05 05:32:56 +05:30
overview.rst Drag and drop: Fix issues in tab hover switching and insertion 2026-09-26 15:50:52 +05:30
performance.rst Switch to perf for profiling from gperftools 2026-08-16 11:24:41 +05:30
pipe.rst
pointer-shapes.rst
press-mentions.rst
protocol-extensions.rst More dnd protocol docs 2026-03-21 08:41:46 +05:30
quake-screenshots.rst
quickstart.rst
rc_protocol.rst
remote-control.rst
requirements.txt Switch from sphinx-inline-tabs to sphinx-design 2026-08-09 14:31:33 +05:30
sessions.rst
shell-integration.rst Fix doubled words in docs and a test comment 2026-08-22 23:10:54 +03:00
support.html
support.rst
text-sizing-protocol.rst Cleanup previous PR and make VS15 on explicit width cell behavior consistent with VS16 2026-09-18 22:59:19 +05:30
underlines.rst
unscroll.rst
wide-gamut-colors.rst