• Python Script (External)

    From Mike@1:229/310 to All on Fri Feb 9 09:21:02 2024
    I'm launching an external python script, not MPY script.

    When I'm trying to display ansi block characters I get the following. "█".

    I am opening the ansi file with cp437 encoding, and everything displays correctly from a bash terminal, but within syncterm I'm getting that?

    Any ideas how to fix this?

    ... They say there's always one weirdo on the bus, but I couldn't find them!

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Clutch BBS * telnet://clutchbbs.com (1:229/310)
  • From Martin Kazmaier@1:340/1101 to Mike on Sat Feb 10 20:32:00 2024

    I'm launching an external python script, not MPY script.

    When I'm trying to display ansi block characters I get the following. "█".

    I am opening the ansi file with cp437 encoding, and everything displays correctly from a bash terminal, but within syncterm I'm getting that?

    Any ideas how to fix this?

    Python 2 or 3? I'm not nearly a Mystic expert, but I could never get Python
    3 to work with it.

    ---
    Shurato, Sysop Shurato's Heavenly Sphere (ssh, telnet, pop3, ftp,nntp)
    (ports 22, 23, 110, 21, 119) (ssh: login bbs password shsbbs)


    *** THE READER V4.50 [freeware]
    ---
    * Origin: Shurato's Heavenly Sphere telnet://shsbbs.net (1:340/1101)
  • From Mike@1:229/310 to Martin Kazmaier on Sun Feb 11 20:13:32 2024
    Python 2 or 3? I'm not nearly a Mystic expert, but I could never get Python 3 to work with it.

    Its a python script completely independant of mystic.

    ... BREAKFAST.COM Halted... Cereal port not responding.

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Clutch BBS * telnet://clutchbbs.com (1:229/310)
  • From Mike@1:229/310 to Christian Sacks on Thu Feb 15 14:40:02 2024
    Sounds like python is displaying it with utf8 encoding, change the encoding to output cp437 and you'll be golden.

    Thanks, I managed to get this working after some googling and suggestions.

    Got some other hurdles to fix, such as escape key multiple times shows the directory contents??

    ... Top secret! Burn before reading!

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: Clutch BBS * telnet://clutchbbs.com (1:229/310)