https://gitlab.synchro.net/main/sbbs/-/commit/fe6b7aceafcd4768736620c7
Modified Files:
src/syncterm/term.c
Log Message:
Fix truncated conn_send() lengths for keyboard escape sequences
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 <
noreply@anthropic.com>
--- SBBSecho 3.37-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)