+43
−43
Loading
43 conn_send() calls were passing incorrect buffer lengths, causing
truncated escape sequences to be sent to the remote host:
- Delete key (non-DECBKM): sent 1 byte of "\x1b[3~" instead of 4
- F1-F5: sent 3 bytes of 5-byte sequences (e.g. "\033[11~")
- Shift+F1-F5, Ctrl+F1-F5, Alt+F1-F5: sent 3 bytes of 7-byte
sequences (e.g. "\033[11;2~")
- Shift+F6-F12, Ctrl+F6-F12, Alt+F6-F12: sent 5 bytes of 7-byte
sequences (e.g. "\033[17;2~")
The lengths appear to have been copy-pasted from the 3-byte arrow key
sequences without being updated for the longer function key strings.
Unmodified F6-F12 (5-byte) and arrow/nav keys (3-byte) were already
correct.
Co-Authored-By:
Claude Opus 4.6 <[email protected]>