BBS:      TELESC.NET.BR
Assunto:  src/syncterm/scripts/auto/connected/keys_default.wrensrc/syncterm/Wren
De:       Deuc¨
Data:     Sun, 3 May 2026 21:13:41 -0700
-----------------------------------------------------------
https://gitlab.synchro.net/main/sbbs/-/commit/0c972d847cf735d2e8e9a3ef
Added Files:
	src/syncterm/scripts/auto/connected/keys_default.wren
Modified Files:
	src/syncterm/Wren.adoc src/syncterm/scripts/auto/connected/status_default.wren src/syncterm/scripts/syncterm.wren src/syncterm/term.c term.h wren_bind.c wren_bind_conn.c wren_bind_conn.h wren_host.c wren_host.h wren_host_internal.h
Log Message:
SyncTERM: move Alt-O / Alt-Up / Alt-Down handlers to Wren

The three remaining in-terminal Alt-shortcuts that lived as case
blocks in term.c's input switch (Alt-O = toggle mouse-event
reporting; Alt-Up / Alt-Down = walk the network throttle rate up /
down the rates ladder) now live in scripts/auto/connected/
keys_default.wren as Hook.onKey handlers, matching the existing
Alt-L (login) pattern.

New C primitives the script needs:
* CTerm.mouseDisabled = b -- toggle the live mouse_state's
  MS_FLAGS_DISABLED bit.
* Input.setupMouseEvents() -- wraps setup_mouse_events(&ms) +
  showmouse(), call after mutating mouse state.
* CTerm.throttleSpeed (getter), CTerm.throttleSpeedUp() /
  throttleSpeedDown() (no-op on serial).  Backed by doterm()'s
  local `speed` via wren_host_bind_speed(), mirroring the
  ooii_mode binding.

Also adds Key.altUp (0x9800) and Key.altDown (0xA000), and adds
the missing CTerm.atasciiInverse / ooiiMode / mouseMode /
mouseDisabled foreign-method declarations to syncterm.wren that
the previous status-bar commit had registered in BINDINGS but
forgotten to declare on the class.

status_default.wren now reads CTerm.throttleSpeed (the live rate
the user can modulate) instead of BBS.bpsRate (the configured
port speed).  Falls back to BBS.bpsRate on serial connections,
matching the historical C update_status() behaviour.

Wren.adoc updated for all of the above.
n
---
  mSynchronetn  hgVertrauen n hHome of Synchronet n gh[vert/cvs/bbs].synchro.net

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