• exec/load/cterm_lib.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Apr 1 09:53:29 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/43370cc1a33ae299156a043e
    Modified Files:
    exec/load/cterm_lib.js
    Log Message:
    Add method: query_ctda() - Query CTerm Device Attributes

    Returns an array of attributes (digits), if valid response

    Now Nightfox, you can query SyncTERM (only) to see if it supports Pixel ops (e.g. Sixel) is supported at the moment, using:

    cterm_lib.query_ctda(cterm_lib.cterm_device_attributes.pixelops_supported)

    - will return true if pixel operations are supported

    Other dynamic terminal capabilities (e.g. depdendant on the output mode that SyncTERM is run in) can be detected with this method. But note: the values returned in SyncTERM's CTDA query-response do not exaclty match the values documented in cterm.txt. So use the constants from cterm_lib.js instead.

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Apr 1 18:54:13 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/cf5cb5f3bb24e043f06f2b28
    Modified Files:
    exec/load/cterm_lib.js
    Log Message:
    Call query_ctda() from supports_sixel() to confirm Sixel support

    Both the version and the output mode SyncTERM must be confirmed.

    A similar change should be made for supports_palettes() I think.

    ---
    Synchronet Vertrauen Home of Synchronet [vert/cvs/bbs].synchro.net