On Saturday, October 25th hollowone said...
https://github.com/hollowonepl/ansviewer
Disregard unless you want to help fix some obvious bugs.
It's all good man, I've written all that before as well, it was built into the x/84 bbs, also in python, the basic "trick" of your script is using python to decode cp437 as unicode and display it natively, as utf-8, that's the basic problem of using modern terminals with legacy bbs systems, too.
I wrote a telnet client in python, 'pip install telnetlib3' and 'telnetlib3-client --help' has option '--encoding=cp437' or similar to do that, so you can connect to these legacy systems with a modern terminal instead of special ones like syncterm. Though I do appreciate the bitmap fonts, I may make a new telnet client that uses sixel to render bitmap fonts, like topaz or cp437 in modern terminals, i guess i'll announce it here if I remember
I use this for sauce parsing,
https://github.com/tehmaze/sauce/blob/master/sauce/__init__.py and now also co-maintain it
I use this for screen and keyboard, all that termios/etc stuff can work on windows, though everyone uses WSL on windows now so it doesn't matter,
https://github.com/jquast/blessed/ i forked and continue to maintain this library, I have several open PR's for adding more advanced stuff like mouse support hope to released soon, just waiting for anyone to review it
I then combined the two libraries into a "showart()" function in that old bbs, and, the special "Terminal.wrap" method allows me to center the art on the screen, the blessed wrap function takes care to understand the horizontal distances of sequences or whatever which makes that possible
https://github.com/jquast/x84/blob/11f445bb82e6e895d7cce57d4c6d8572d1981162/x84/bbs/output.py#L244-L392
--- ENiGMA 1/2 v0.0.14-beta (linux; x64; 22.18.0)
* Origin: Xibalba -+- xibalba.vip:44510 (911:1801/0)