kitty/kitty
Kovid Goyal a9147bbf01
Fix erase_last_command when the live prompt has scrolled into the scrollback
When the first lines of the live prompt were in the scrollback, an unsigned
wrap made erase_last_command delete most of the screen and the newest
scrollback lines, including the live prompt. Delete the erased lines from
the middle of the scrollback instead, with a new historybuf_delete_lines()
that removes multicell chars cut by the deletion, and also remove such
fragments from the screen. Clear selections and the wrap flag of the line
above the erased lines on every path.

Also keep the last visited prompt on the same content when lines are
inserted or deleted (CSI L/M), forget it on a hard reset, and only fill from
the scrollback when unscrolling (CSI + T) if the scroll region starts at the
top of the screen, instead of overwriting the top line of the screen.
2026-11-11 11:22:56 +05:30
..
conf
fonts Make ty happy 2026-10-10 07:39:39 +05:30
launcher
layout Cleanup previous PR 2026-10-09 19:51:38 +05:30
options Custom shaders: Add screen-shake shaders for the bell 2026-11-05 14:32:45 +05:30
rc Further harden remote control password processing 2026-11-03 17:36:01 +05:30
shaders Custom shaders: Add screen-shake shaders for the bell 2026-11-05 14:32:45 +05:30
__init__.py
actions.py
animation-parse.h
animation.c
animation.h
arches.h
arena.h
backtrace.h
banned.h
base64.h dnd: Accept base64 payloads with trailing padding 2026-10-30 18:16:47 +05:30
bash.py
binary.h
borders.py
boss.py Do not open save_as_session --match sessions in a new OS window 2026-11-10 16:00:46 -08:00
char-props-data.h
char-props.c
char-props.h
charsets.c
charsets.h
child-monitor.c Fix animated mouse pointers restarting on every mouse move 2026-11-10 08:49:23 +05:30
child.c Remove obsolete pre-3.7 Python compatibility branches 2026-11-10 00:01:50 +08:00
child.py Use the root process, not kitty's wrapper, for a window's process info 2026-10-23 01:17:33 +05:30
choose_entry.py
cleanup.c
cleanup.h
cli.py Add nightly version to version string for nightly builds. Fixes #10751 2026-10-27 10:43:51 +05:30
cli_stub.py
client.py
clipboard.py
cocoa_window.h Workaround for OS Window focus on notification in macOS when there are multiple kitty instances 2026-11-04 20:26:50 +05:30
cocoa_window.m autoformat 2026-11-04 20:30:08 +05:30
color-names.h
colors.c get-colors: Report cursor text color as cursor_text_color 2026-11-10 08:27:50 +05:30
colors.h
colors.py Cleanup previous PR 2026-10-31 17:15:08 +05:30
config.py Fix link hover regressions identified in review 2026-10-23 12:59:35 +08:00
constants.py version 0.50.0 2026-11-03 13:40:34 +05:30
control-codes.h
core_text.m Fix #10757 2026-10-28 07:50:44 +05:30
cross-platform-random.h
crypto.c Encrypt sessions saved at logout with a key in the macOS Keychain 2026-10-16 11:57:31 +05:30
crypto.h Encrypt sessions saved at logout with a key in the macOS Keychain 2026-10-16 11:57:31 +05:30
cursor.c
cursor_trail.c
data-types.c Add nightly version to version string for nightly builds. Fixes #10751 2026-10-27 10:43:51 +05:30
data-types.h Make mark colors respect color layers 2026-10-29 08:57:18 +05:30
debug_config.py Cleanup previous PR 2026-10-23 11:08:28 +05:30
decorations.c Scale box drawing, cursor and title bar border line thickness with font size 2026-10-23 10:18:23 +05:30
decorations.h Scale box drawing, cursor and title bar border line thickness with font size 2026-10-23 10:18:23 +05:30
desktop.c
disk-cache.c Cleanup previous PR 2026-10-09 18:37:48 +05:30
disk-cache.h
dnd.c dnd: Accept base64 payloads with trailing padding 2026-10-30 18:16:47 +05:30
dnd.h
entry_points.py
fast-file-copy.c
fast-file-copy.h
fast_data_types.pyi Fix animated mouse pointers restarting on every mouse move 2026-11-10 08:49:23 +05:30
file_transmission.py Transfer kitten: Clearer errors when the destination is a directory 2026-10-21 06:14:21 +05:30
fixed_size_deque.h
font-names.c
fontconfig.c
fonts.c Fix #10729 2026-10-24 06:28:36 +05:30
fonts.h Scale box drawing, cursor and title bar border line thickness with font size 2026-10-23 10:18:23 +05:30
freetype.c
freetype_render_ui_text.c Fix leaks and NULL dereference when creating a FreeType render context fails 2026-10-30 09:14:43 +05:30
freetype_render_ui_text.h
gl-wrapper.c
gl-wrapper.h
gl.c Cleanup previous PR 2026-10-12 09:57:24 +05:30
gl.h Cleanup previous PR 2026-10-12 09:57:24 +05:30
glfw-wrapper.c Wayland CSD: Parse the titlebar font description once in glfw 2026-10-30 09:03:46 +05:30
glfw-wrapper.h IME: Show the cursor at the position reported by the input method in the pre-edit text 2026-11-05 08:26:34 +05:30
glfw.c Workaround for OS Window focus on notification in macOS when there are multiple kitty instances 2026-11-04 20:26:50 +05:30
glyph-cache.c
glyph-cache.h
graphics.c Graphics protocol: Add sub-feature querying 2026-10-25 09:59:12 +05:30
graphics.h Graphics protocol: Add sub-feature querying 2026-10-25 09:59:12 +05:30
guess_mime_type.py Have --config=NONE also skip other conf files used by kitty 2026-10-29 08:46:15 +05:30
history.c Fix erase_last_command when the live prompt has scrolled into the scrollback 2026-11-11 11:22:56 +05:30
history.h Fix erase_last_command when the live prompt has scrolled into the scrollback 2026-11-11 11:22:56 +05:30
hyperlink.c
hyperlink.h
iqsort.h
key_encoding.c
key_encoding.py
key_names.py
keys.c IME: Show the cursor at the position reported by the input method in the pre-edit text 2026-11-05 08:26:34 +05:30
keys.h
keys.py
kittens.c Cleanup previous PR 2026-10-09 18:37:48 +05:30
kitty-verstable.h
launch.py Keep per-window and program colors when the system color theme changes 2026-10-23 09:22:17 +05:30
line-buf.c Make history consumption on resize an explicit parameter 2026-10-09 10:49:57 +05:30
line-buf.h
line.c
line.h Fix CPUCell not being zero initialised by clang on ARM 2026-10-14 13:35:21 +05:30
lineops.h
logging.c
logout_session.py Implement session saving on Logout for Linux as well 2026-10-19 10:49:22 +05:30
loop-utils.c
loop-utils.h
machine_id.py
macos_process_info.c Fix #10673 2026-10-16 12:57:07 +05:30
main.py Have --config=NONE also skip other conf files used by kitty 2026-10-29 08:46:15 +05:30
marks.py
mime-cache.c
modes.h
monotonic.c
monotonic.h
mouse.c Make scrollback anchoring more robust 2026-11-10 19:20:17 +05:30
multiprocessing.py Remove unused process pool factory 2026-11-06 20:19:44 +08:00
notifications.py autoformat 2026-11-04 20:30:08 +05:30
open_actions.py Have --config=NONE also skip other conf files used by kitty 2026-10-29 08:46:15 +05:30
os_window_size.py
parse-dnd-command.h Graphics protocol: Add sub-feature querying 2026-10-25 09:59:12 +05:30
parse-graphics-command.h Graphics protocol: Add sub-feature querying 2026-10-25 09:59:12 +05:30
parse-multicell-command.h
png-reader.c Reject out of range width and height in png_from_32bit_rgba_data 2026-10-09 07:40:55 -04:00
png-reader.h
print-graphics.h
program_status.py Cleanup previous PR 2026-10-13 21:05:16 +05:30
progress.py
remote_control.py Further harden remote control password processing 2026-11-03 17:36:01 +05:30
render_cache.py
resize.c Make history consumption on resize an explicit parameter 2026-10-09 10:49:57 +05:30
resize.h Make history consumption on resize an explicit parameter 2026-10-09 10:49:57 +05:30
rgb.py
rowcolumn-diacritics.c
safe-wrappers.h
screen.c Fix erase_last_command when the live prompt has scrolled into the scrollback 2026-11-11 11:22:56 +05:30
screen.h Track the last visited prompt as a single content row 2026-11-11 11:08:48 +05:30
search_query_parser.py
session.py Make the warning for --use-foreground-process more explicit 2026-10-25 08:48:15 +05:30
shaders.c Custom shaders: Add command and alternate screen events and uniforms 2026-11-05 08:43:37 +05:30
shaped-run-cache.c
shaped-run-cache.h
shell_integration.py Bash integration: Source the system startup files bash was built with 2026-11-07 06:25:36 +05:30
shlex.c
shm.py
short_uuid.py
simd-string-128.c
simd-string-256.c
simd-string-512.c
simd-string-impl.h
simd-string.c
simd-string.h
simple_cli_definitions.py Have --config=NONE also skip other conf files used by kitty 2026-10-29 08:46:15 +05:30
srgb_gamma.h
state.c Fix animated mouse pointers restarting on every mouse move 2026-11-10 08:49:23 +05:30
state.h Make scrollback anchoring more robust 2026-11-10 19:20:17 +05:30
systemd.c
tab_bar.py Fix #10810 2026-11-05 20:46:52 +05:30
tabs.py save_as_session: Cleanup previous PR 2026-11-11 08:41:17 +05:30
terminfo.h
terminfo.py
text-cache.c
text-cache.h
threading.h
types.py
typing_compat.py
typing_compat.pyi misc improvements for indexed color images 2026-10-16 11:13:14 +05:30
unicode-data.h
update_check.py
utils.py Remove unused ceil_int helper 2026-11-09 20:06:40 +08:00
utmp.c
vt-parser.c ssh kitten: Allow per-host color schemes for dark and light mode 2026-10-23 09:37:50 +05:30
vt-parser.h macOS: Optionally restore kitty, including scrollback, after logging out 2026-10-16 11:41:27 +05:30
wcswidth.c
wcswidth.h
window.py Make scrollback anchoring more robust 2026-11-10 19:20:17 +05:30
window_list.py
window_logo.c
window_logo.h
window_title_bar.py
xdg.py Linux: Send kitty's .desktop file name to notification servers for grouping 2026-10-23 08:47:19 +05:30