Subj : Re: Python/Term Emulation To : opicron From : DustCouncil Date : Mon May 26 2025 08:42 pm op> Du> One of the scripts on my system is the popular IBOL (interBBS OneLine op> Du> This will print an ANSI header regardless of terminal emulation, and op> Du> Python is not very well documented on the Mystic wiki. What I'd reall op> Du> do is detect terminal emulation and either print the .ANS if ANSI emu op> Du> in effect, otherwise print the ASC, but I have no idea how to determi op> Du> this in Python. op> Du> op> Du> What I want to do is determine the terminal emulation and put an if-t op> Du> statement either selecting the .ANS or .ASC file accordingly. op> To determine yourself if you need ANS or ASC, you can use mci2str('SI') op> which will return ASCII or ANSI. op> * Origin: TheForze - bbs.theforze.eu:23 (21:3/126) Thanks for the response. It looks like the showfile() function has this capability built in, wherein you specify something like: showfile("filename") without an extension and Mystic applies the right one based on terminal emulation. Answering myself here in case anyone else searches on this. --- Mystic BBS v1.12 A48 (Linux/64) * Origin: Shipwrecks & Shibboleths [San Francisco, CA - USA] (21:1/227) .