• src/syncterm/syncterm.c term.c

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Sunday, March 02, 2025 16:42:05
    https://gitlab.synchro.net/main/sbbs/-/commit/a8b3fb850894fd762b440afc
    Modified Files:
    src/syncterm/syncterm.c term.c
    Log Message:
    Fix the palette hack a bit

    This actually adjusts the palette values used by the CTerm shadow
    palette. This allows the palette to work properly without the
    weird offset thing.

    Unfortunately, this means a cterm_reset() will not use the new
    values, and since term.c doesn't know when cterm_reset() has been
    called, we can't fix it afterward anymore without being very
    invasive and double-checking after every cterm_write() call.

    This is fine for the indended audience however (ie: Atari ST
    emulation) since they don't have a reset sequence.
    --- SBBSecho 3.23-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Monday, April 27, 2026 06:15:53
    https://gitlab.synchro.net/main/sbbs/-/commit/69ce31a825697b89a48f62d9
    Modified Files:
    src/syncterm/syncterm.c term.c
    Log Message:
    SyncTERM: move Wren VM lifecycle inside doterm()

    doterm() now owns wren_host_init/shutdown; the caller in syncterm.c
    no longer brackets the call. Converted to a single-return shape via
    \`bool ret\` and \`goto end\` so shutdown runs on every exit path.
    The pre-init cterm-failure return stays a plain \`return false\` — no
    VM exists yet.

    Sets up locals (speed, ooii_mode) being in scope where the VM is
    initialized, so accessors for them can read live values for the
    entire VM lifetime.

    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
    --- SBBSecho 3.37-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)