repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
87f89de
parent
c6956f8
author
Eric Bower
date
2026-04-04 22:32:38 -0400 EDT
fix: kitty up arrow detection
1 files changed,  +1, -1
M src/util.zig
+1, -1
1@@ -218,7 +218,7 @@ pub fn isCtrlBackslash(buf: []const u8) bool {
2 
3 /// Detects vt100 or kitty keyboard protocol escape sequence for up arrow.
4 pub fn isUpArrow(buf: []const u8) bool {
5-    return std.mem.eql(u8, buf, "\x1b[A") or std.mem.eql(u8, buf, "\x1b[26;1u");
6+    return std.mem.eql(u8, buf, "\x1b[A") or std.mem.eql(u8, buf, "\x1b[1;1:1A");
7 }
8 
9 fn isKeyPressed(buf: []const u8, expected_key: u32, expected_mods: u32) bool {