One of the scripts on my system is the popular IBOL (interBBS OneLiner) sc
This will print an ANSI header regardless of terminal emulation, and embe Python is not very well documented on the Mystic wiki. What I'd really lik do is detect terminal emulation and either print the .ANS if ANSI emulatio in effect, otherwise print the ASC, but I have no idea how to determine/IF this in Python.
This the function that checks if the header file (with the .ans extension) exists, and, if so, reads and prints it.
What I want to do is determine the terminal emulation and put an if-then statement either selecting the .ANS or .ASC file accordingly.
I am running v0.2 of this script.
This is a nitpicky thing, but other than this my system does well filterin the ANSI stuff except for this, with a few other exceptions.
Does anyone know how to do this? One other possibility is to re-write the header using built-incodes rather than ANSI in hopes Mystic will fitler th
One of the scripts on my system is the popular IBOL (interBBS OneLine
This will print an ANSI header regardless of terminal emulation, and Python is not very well documented on the Mystic wiki. What I'd reall do is detect terminal emulation and either print the .ANS if ANSI emu in effect, otherwise print the ASC, but I have no idea how to determi this in Python.
What I want to do is determine the terminal emulation and put an if-t statement either selecting the .ANS or .ASC file accordingly.To determine yourself if you need ANS or ASC, you can use mci2str('SI') which will return ASCII or ANSI.
* Origin: TheForze - bbs.theforze.eu:23 (21:3/126)
Sysop: | sneaky |
---|---|
Location: | Ashburton,NZ |
Users: | 31 |
Nodes: | 8 (0 / 8) |
Uptime: | 132:49:57 |
Calls: | 2,073 |
Files: | 11,136 |
Messages: | 947,558 |