input: shift-enter newline via keyboard protocol, tmux modifyOtherKeys, backslash-enter, wrapping, /keys
ci / check (push) Canceled after 0s
ci / check (pull_request) Canceled after 0s

This commit is contained in:
hermes committed 2026-10-02 23:04:14 +00:00
1 parent da5ff36b51
commit cafdaaae5d
5 files changed
+195 -7

No files matched your search

+4
View File
@@ -26,6 +26,7 @@ if pid == 0:
import fcntl, termios, struct
fcntl.ioctl(fd, termios.TIOCSWINSZ, struct.pack("HHHH", 30, 100, 0, 0))
os.write(fd, b"\x1b[?62;c") # answer hx's keyboard-protocol probe like a terminal without kitty support
buf = b""
def pump(t):
global buf
@@ -55,6 +56,9 @@ pump(1.5)
check("startup footer", "Claude")
check("latest default model", "claude-sonnet-5-5")
check("1M window", "/900k")
send(b"l1"); send(b"\x1b[13;2u"); send(b"l2") # shift-enter as CSI-u (kitty protocol)
check("shift-enter is a newline, not a submit", "l1")
send(b"\x15\x7f\x15") # kill line 2, join, kill line 1
send(b"/skills\r")
check("skills from ~/.agents", "/deploy — ship it")
check("project .agents skills", "/lint — project lint")