• exec/load/cterm_lib.js

    From rswindell@VERT to CVS commit on Friday, February 02, 2018 04:54:19
    exec/load cterm_lib.js NONE 1.1
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv19181

    Added Files:
    cterm_lib.js
    Log Message:
    Library for doing special CTerm/SyncTERM stuff, loading feature/support detection, font loading/activation, displaying XBin images, etc.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, February 03, 2018 02:17:35
    exec/load cterm_lib.js 1.1 1.2
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv12711

    Modified Files:
    cterm_lib.js
    Log Message:
    Renamed xbimage_draw/cleanup() to xbin_draw/cleanup(), added support to
    this function for classic .xb files with custom palettes and support
    the new SyncTERM/XTerm palette redefinition and reset esc sequences.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, February 03, 2018 17:57:23
    exec/load cterm_lib.js 1.2 1.3
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv27383

    Modified Files:
    cterm_lib.js
    Log Message:
    xbin_draw and xbin_cleanup methods will now compare the image's charheight
    with the current detectec charheight and ignore any font data if they
    dont' match (but still display the image data). This will sometimes result
    in "garbage" on the screen, sometimes it'll look fine. Depends on how the
    file was generated.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, February 03, 2018 19:48:22
    exec/load cterm_lib.js 1.3 1.4
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv6428

    Modified Files:
    cterm_lib.js
    Log Message:
    supports_fonts() method return false when cterm_version is undefined
    (fixes problem in v3.16 or non-current v3.17 trying to load fonts into non-font-capable terminals).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, February 03, 2018 22:26:19
    exec/load cterm_lib.js 1.4 1.5
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv25425

    Modified Files:
    cterm_lib.js
    Log Message:
    query() now better recognizes and discards characters that are not part
    of the response escape sequence. This fixes a number of issues with "keys" being interpretted (that weren't hit by the user) when activating fonts
    and querying modes.
    Also added "CTerm" to the debug log output lines.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sunday, February 04, 2018 21:15:14
    exec/load cterm_lib.js 1.5 1.6
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv13432

    Modified Files:
    cterm_lib.js
    Log Message:
    Added supports_palettes() function and return false for all versions of
    cterm < 1.167.
    Use supports_fonts() in xbin_draw() so we don't bother sending font data
    when we know the terminal can't use it, but we still want to display
    the xbin image data.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, February 05, 2018 03:42:33
    exec/load cterm_lib.js 1.6 1.7
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv28719

    Modified Files:
    cterm_lib.js
    Log Message:
    Increase the query() response timeout from 1 to 3 seconds. For some reason
    one second is not always long enough, even over localhost.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Monday, February 05, 2018 17:59:12
    exec/load cterm_lib.js 1.7 1.8
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv816

    Modified Files:
    cterm_lib.js
    Log Message:
    Make it easy to save and restore the active fonts (all 4 slots). console.cterm_fonts_active contains an array of the active slots xbin_draw()/cleanup() methods now saves and restores the active fonts
    - this fixes the problem whereby AnsiView was "losing" the current custom
    font after viewing an XBin w/font(s).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, February 06, 2018 01:07:46
    exec/load cterm_lib.js 1.9 1.10
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv20364

    Modified Files:
    cterm_lib.js
    Log Message:
    Created a write() method to create/modify a XBin file - does not compress.
    Read the palette in 3-byte chunks, readBin supports arrays! Who knew?



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Tuesday, February 06, 2018 03:18:21
    exec/load cterm_lib.js 1.10 1.11
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv6372

    Modified Files:
    cterm_lib.js
    Log Message:
    Only enable the background-bright-intensity option if we did *not* activate one of the blink fonts.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, February 07, 2018 00:22:46
    exec/load cterm_lib.js 1.12 1.13
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv15544

    Modified Files:
    cterm_lib.js
    Log Message:
    Use the new CTerm character/font dimension query to get the current
    charheight, when support is indicated by the CTerm version.

    In xbin_draw(), when scrolled to the edges of an image, don't redraw
    repeatedly just because the user held down a movement key for too long.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, February 07, 2018 01:47:12
    exec/load cterm_lib.js 1.13 1.14
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv23280

    Modified Files:
    cterm_lib.js
    Log Message:
    When viewing a Bin/XBin, the arrow keys scroll the image in bigger jumps
    (10 chars horizontall, 5 vertically). Move one one char/line at a time,
    use the num-lock number keys or backspace (up) and enter (down).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, February 07, 2018 16:27:02
    exec/load cterm_lib.js 1.14 1.15
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv1225

    Modified Files:
    cterm_lib.js
    Log Message:
    When parsing the DA response and converting into a version number, use parseInt() on the fields. Can't multiply strings.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Friday, February 09, 2018 17:35:40
    exec/load cterm_lib.js 1.16 1.17
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv12409/load

    Modified Files:
    cterm_lib.js
    Log Message:
    Support new font loading style.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Friday, February 09, 2018 17:45:42
    exec/load cterm_lib.js 1.17 1.18
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv13476

    Modified Files:
    cterm_lib.js
    Log Message:
    New font mode doesn't need the telnet binary option either.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Tuesday, February 13, 2018 21:51:02
    exec/load cterm_lib.js 1.18 1.19
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv18570

    Modified Files:
    cterm_lib.js
    Log Message:
    Add query_fb() which is like query() but waits for a specific response.
    It also attempts to eliminated the timeout for other terminals.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Wednesday, February 14, 2018 11:48:19
    exec/load cterm_lib.js 1.19 1.20
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv5771

    Modified Files:
    cterm_lib.js
    Log Message:
    Fix references to undefined cterm_version - who did this work?


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Lord Time@VERT/TIME to rswindell on Wednesday, February 14, 2018 12:37:11
    exec/load cterm_lib.js 1.19 1.20
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv5771

    Modified Files:
    cterm_lib.js
    Log Message:
    Fix references to undefined cterm_version - who did this work?

    I and other sysop think you just fix a bug I found yesterday night, when I did a
    linux update, I wasn't getting this :

    root@debian:/sbbs/exec# /sbbs/exec/jsexec update.js

    JSexec v3.17a-Linux (rev 1.194) - Execute Synchronet JavaScript Module
    Compiled Feb 14 2018 12:32:14 with GCC 6.3.0

    Loading configuration files from /sbbs/ctrl
    JavaScript-C 1.8.5 2011-03-31
    JavaScript: Creating runtime: 8388608 bytes
    JavaScript: Initializing context (stack: 16384 bytes)

    Reading script from /sbbs/exec/update.js
    /sbbs/exec/update.js compiled in 0.00 seconds
    Synchronet update.js revision 1
    Updating exec directory: Success
    Updating ip_address field: 0 records updated
    Installing SBBSLIST v4 (replacing SBL v3)
    Synchronet BBS List v4(1.36)
    Adding external program: SBBSLIST
    Adding timed event: SMB2SBL
    Adding timed event: SBL2SMB
    Adding timed event: SBLUPDAT
    Adding timed event: SBLMAINT
    Successful
    Updating (compiling) Baja modules
    /sbbs/exec/update.js executed in 0.04 seconds

    JavaScript: Destroying context
    JavaScript: Destroying runtime
    root@debian:/sbbs/exec#


    ---

    Rob Starr
    Lord Time SysOp of
    Time Warp of the Future BBS
    Telnet://Time.Darktech.Org:24 or
    Telnet://Time.Synchro.Net:24 (qwk or ftn & e-mail)
    ICQ # 11868133 or # 70398519 Jabber : lordtime2000@gmail.com
    Astra : lord_time
    X-Box : Lord Time 2000 Skype : lordtime@tds.net
    ---
    þ Synchronet þ Time Warp of the Future BBS - Home of League 10 IBBS Games
  • From rswindell@VERT to CVS commit on Thursday, May 09, 2019 14:25:05
    exec/load cterm_lib.js 1.20 1.21
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv9366

    Modified Files:
    cterm_lib.js
    Log Message:
    Added bright_background(enable) method, to easily enable/disable bright-background (iCE color) support in SyncTERM/CTerm ANSI terminals.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Thursday, July 11, 2019 19:24:32
    exec/load cterm_lib.js 1.21 1.22
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17040

    Modified Files:
    cterm_lib.js
    Log Message:
    Added supports_sixel() method.
    Fixed possible undefined console.cterm_fonts_active reference.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Friday, August 02, 2019 00:32:43
    exec/load cterm_lib.js 1.22 1.23
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv13147

    Modified Files:
    cterm_lib.js
    Log Message:
    Make the minimum CTerm version for loadable-fonts support rev 1.155 (1155)
    - this is the version used in SyncTERM v1.0.
    I happened to try SyncTERM 0.9.5b recently (CTERm 1.151) and it failed
    to either load or activate loaded fonts, so: not-supported.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Saturday, June 06, 2020 01:37:50
    exec/load cterm_lib.js 1.23 1.24
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv22586

    Modified Files:
    cterm_lib.js
    Log Message:
    Typo LOG()->log()



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, February 27, 2021 22:27:43
    https://gitlab.synchro.net/main/sbbs/-/commit/009202357c153e98f0f9d412
    Modified Files:
    exec/load/cterm_lib.js
    Log Message:
    activate_font() now supports an optional wantblink argument

    pass true if blink is desireable for blink/high-blink fonts.

    ---
    þ 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 Saturday, April 01, 2023 09:53:29
    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 Saturday, April 01, 2023 18:54:13
    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
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Friday, October 18, 2024 17:11:06
    https://gitlab.synchro.net/main/sbbs/-/commit/d06c74760b0a28b5400c651c
    Modified Files:
    exec/load/cterm_lib.js
    Log Message:
    Define cterm_version_supports_copy_buffers (1316)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deuc¨@VERT to Git commit to main/sbbs/master on Friday, October 18, 2024 18:29:35
    https://gitlab.synchro.net/main/sbbs/-/commit/e81d266166ab527ccc7cd1a1
    Modified Files:
    exec/load/cterm_lib.js
    Log Message:
    Make scale_rgb_channel_value() a bit smoother and avoid divide by zero.

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