BBS:      TELESC.NET.BR
Assunto:  src/syncterm/term.c
De:       Deuc¨
Data:     Thu, 23 Apr 2026 18:36:01 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/93f9184e28878700f6b175af
Modified Files:
	src/syncterm/term.c
Log Message:
SyncTERM: include modifier keys in mouse reports

fill_mevent() ignored mouse_event.kbmodifiers, so Shift/Ctrl/Alt chords
on the mouse always arrived at the host with the modifier bits cleared.
BBS-side code could not distinguish Ctrl+Click from a plain click.

Map CIOLIB_KMOD_SHIFT/ALT/CTRL to xterm's Cb modifier bits (4/8/16) and
OR them into the reported button code for both legacy (CSI M) and SGR
(CSI <) reporting.  X10 compatibility mode (DECSET 9) is press-only and
button-bits-only per spec, so modifiers are suppressed there.

In the legacy branch the OR happens after the "release -> button = 3"
clamp, so release events still carry modifiers.  The modifier bits
(4/8/16) do not collide with the existing +61/+121 high-button offsets
or the +32 motion bit.

Co-Authored-By: Claude Opus 4.7 (1M context) 
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

-----------------------------------------------------------
[Voltar]