• exec/load/tdfonts_lib.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sat Jun 6 15:23:28 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/4aa1caa8c1929ffc30c9e8eb
    Modified Files:
    exec/load/tdfonts_lib.js
    Log Message:
    tdfiglet: emit conditional new-line (Ctrl-A '/') on right-most-column rows

    When a rendered row fills to the right-most column of the detected or configured width, output Synchronet's conditional new-line (Ctrl-A '/')
    instead of a hard CRLF. The terminal auto-wraps at the right margin, so a
    hard CRLF there produced an extra blank line; the conditional new-line only emits a new-line when the cursor isn't already at column 0, so it's correct
    on both auto-wrapping and non-auto-wrapping terminals.

    This generalizes the previous right-justify-with-zero-padding special case (which simply omitted the CRLF) to any justification, keyed solely on whether the row reaches the right-most column. In -a (ANSI) mode nothing extra is emitted, preserving prior behavior.

    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

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