• exec/load/listfiles_lib.js exec/tests/listfiles/lib.js

    From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Wednesday, November 18, 2026 19:34:16
    https://gitlab.synchro.net/main/sbbs/-/commit/4c7b936b2cd0d1681718a9de
    Added Files:
    exec/load/listfiles_lib.js exec/tests/listfiles/lib.js
    Log Message:
    listfiles_lib.js: library for a stock List Files module

    The pure (terminal-independent) part of a JS replacement for the built-in
    file lister (#1353): the [listfiles] modopts.ini defaults (reproducing the built-in lister's output), merging the global, per-library and
    per-directory option sections, the order in which header/footer menu files
    are looked up (directory, library, then all), widening of long filespecs as
    the built-in lister does, a port of format_filename(), Ctrl-A codes for an attr.ini color, the module's own @-codes (with the standard -L/-R/-C and | width/alignment modifiers), and splitting files of varying heights
    (extended descriptions) into pages.

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