Subj : Python/Term Emulation To : DustCouncil From : opicron Date : Mon May 26 2025 06:32 pm Du> One of the scripts on my system is the popular IBOL (interBBS OneLiner) sc Du> This will print an ANSI header regardless of terminal emulation, and embe Du> Python is not very well documented on the Mystic wiki. What I'd really lik Du> do is detect terminal emulation and either print the .ANS if ANSI emulatio Du> in effect, otherwise print the ASC, but I have no idea how to determine/IF Du> this in Python. Du> Du> This the function that checks if the header file (with the .ans extension) Du> exists, and, if so, reads and prints it. Du> Du> What I want to do is determine the terminal emulation and put an if-then Du> statement either selecting the .ANS or .ASC file accordingly. Du> Du> I am running v0.2 of this script. Du> Du> This is a nitpicky thing, but other than this my system does well filterin Du> the ANSI stuff except for this, with a few other exceptions. Du> Du> Does anyone know how to do this? One other possibility is to re-write the Du> header using built-incodes rather than ANSI in hopes Mystic will fitler th Du> You might be lucky using find_display(). It will load the correct ANSI file for the current screen size 80x25 or 132x37 etc. I never tried, but I think it will also load the ASC instead of ANS when the emulation mode is set. Do note that find_display('filename') only works on the newer Mystic release. To determine yourself if you need ANS or ASC, you can use mci2str('SI') which will return ASCII or ANSI. oP! .... Join the Group Mind - become a Borg --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64) * Origin: TheForze - bbs.theforze.eu:23 (21:3/126) .