• Python Script (External)

    From Mike@1:229/310 to All on Friday, February 09, 2024 09:21:02
    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 Saturday, February 10, 2024 20:32:00

    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 Sunday, February 11, 2024 20:13:33
    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 Christian Sacks@2:250/5 to Mike on Thursday, February 15, 2024 14:52:31
    On 09 Feb 2024, Mike said the following...

    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?

    Sounds like python is displaying it with utf8 encoding, change the encoding to output cp437 and you'll be golden.

    ... Confucius say: "Its stuffy inside fortune cookie"

    --- Mystic BBS v1.12 A49 2023/04/30 (Linux/64)
    * Origin: thE qUAntUm wOrmhOlE, rAmsgAtE, uK. bbs.erb.pw (2:250/5)
  • From Mike@1:229/310 to Christian Sacks on Thursday, February 15, 2024 14:40:02
    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)