• exec/load/cterm_lib.js

    From rswindell@1:103/705 to CVS commit on Fri Feb 2 04:54:19 2018
    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.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sat Feb 3 02:17:35 2018
    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.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sat Feb 3 17:57:23 2018
    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.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sat Feb 3 19:48:22 2018
    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).


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sat Feb 3 22:26:19 2018
    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.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sun Feb 4 21:15:14 2018
    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.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Feb 5 03:42:33 2018
    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.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Mon Feb 5 17:59:12 2018
    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).


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Tue Feb 6 01:07:46 2018
    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?


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Tue Feb 6 03:18:21 2018
    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.

    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Feb 7 00:22:46 2018
    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.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Feb 7 01:47:12 2018
    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).


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Feb 7 16:27:02 2018
    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.


    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Fri Feb 9 17:35:40 2018
    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.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Fri Feb 9 17:45:42 2018
    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.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From deuce@1:103/705 to CVS commit on Tue Feb 13 21:51:02 2018
    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.



    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Wed Feb 14 11:48:19 2018
    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?

    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Lord Time@1:103/705 to rswindell on Wed Feb 14 12:37:11 2018
    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
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Thu May 9 14:25:05 2019
    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.


    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Thu Jul 11 19:24:32 2019
    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.


    --- SBBSecho 3.07-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Fri Aug 2 00:32:43 2019
    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.


    --- SBBSecho 3.08-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From rswindell@1:103/705 to CVS commit on Sat Jun 6 01:37:50 2020
    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()


    --- SBBSecho 3.11-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to Git commit to main/sbbs/master on Sat Feb 27 22:27:43 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/009202357c153e98f0f9d412
    Modified Files:
    exec/load/cterm_lib.js
    Log Message:
    activate_font() now supports an optional wantblink argumentpass true if blink is desireable for blink/high-blink fonts.
    --- SBBSecho 3.13-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 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 AttributesReturns an array of attributes (digits), if valid responseNow 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 supportedOther dynamic terminal capabilities (e.g. depdendant on the output mode thatSyncTERM is run in) can be detected with this method. But note: the valuesreturned in SyncTERM's CTDA query-response do not exaclty match the valuesdocumented in cterm.txt. So use the constants from cterm_lib.js instead.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 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 supportBoth the version and the output mode SyncTERM must be confirmed.A similar change should be made for supports_palettes() I think.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)