https://gitlab.synchro.net/main/sbbs/-/commit/a63525664c3899556a22a11b
Modified Files:
src/syncterm/term.c
Log Message:
Extract speedwatch, zmodem detect, OOII, and mouse handlers from doterm()
Extract four inline state machines / handlers from the doterm() main
loop into separate functions:
- check_speedwatch(): pure FSM for ESC[0;N*r speed response detection
- feed_zmodem_detect(): ZDLE+ZHEX sequence matching for auto-download/upload
- feed_ooii(): OOII command accumulation and init pattern detection
- handle_mouse_event(): all mouse button/move/drag/scroll handling
Move constant data (zrqinit/zrinit patterns, ooii_init1/ooii_init2
patterns) to file-scope static const. Move ooii_buf/ooii_buf_len to
file-scope statics (reset at doterm() entry). Make mouse_buf a local
inside handle_mouse_event().
Co-Authored-By: Claude Opus 4.6 (1M context) <
noreply@anthropic.com>
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net