• Mystic Random file display testing

    From bcw142@21:1/145 to All on Wed Nov 28 12:53:18 2018
    OK, I've setup random display in the Xperimental sections of
    Mystic Pi BBS (Linux/32) and AlphaTest BBS (Linux/64). Such
    groups expect to be in /mystic/text all with the same base
    name and extensions from .an0-.anz (all lowercase in Linux).
    The Random display is R and a gallery of them is setup under U.
    These things use different defaults: galleries are directories,
    Random files are files under /mystic/text. It does appear to
    mostly work that way, but you can check them out for yourselves.
    Mystic Pi BBS is at bcw142.zapto.org all default ports,
    AlphaTest is at bcw142.zapto.org all ports with offset 2300.
    They are setup the same for testing.

    Notes from Whatsnew.txt:

    + Mystic's random display file system now also will include letters a-z,
    allowing up to 36 randomly selected display files per filename, up from
    11. It works the same as before. If myansi.an1 exists, then Mystic
    will randomly select any file that exists in the myansi.an0-myansi.an9
    range or myansi.ana-myansi.anz range. For OSes with case sensitive
    filenames, the extensions are always lowercased. They do not have to be
    in any order, just .an1 has to exist to "trigger" the random system:

    myansi.ans
    myansi.an1
    myansi.anz
    myansi.an5


    + New Python function "showfile(filename, baud, pause, abort, onlynew)"

    This function shows a display file and provides all options specific to
    how it is displayed as parameters and returns True or False depending on
    if a display file was found and shown.

    The filename logic uses the same as the GD menu command (see the Wiki
    documentation for GD for more info) which means it has implied paths and
    extensions and random display files if desired.

    The baud parameter is 0 for full speed or whatever the baud rate at which
    Mystic should display the file.

    The Pause parameter is a True/False value that when True will attempt to
    pause on a full screen.

    The Abort parameter is a True/False value that when True will allow the
    file to be adorted while display using the space bar.

    The OnlyNew parameter is a True/False value that when True will only show
    the file if it has been update since the user's last login to the BBS. Ex:

    showfile("gj-glue1", 9600, False, True, False)
    showfile("c:\mystic\textfiles\mytext.txt", 0, True, True, False)

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)