• Python Script (External)

    From Mike@1:229/310 to All on Fri Feb 9 07: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!


    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (1:229/310@fidonet)
  • From Martin Kazmaier@1:340/1101 to Mike on Sat Feb 10 18: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]

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (1:340/1101@fidonet)
  • From Mike@1:229/310 to Martin Kazmaier on Sun Feb 11 18:13:33 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.


    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (1:229/310@fidonet)
  • From Christian Sacks@2:250/5 to Mike on Thu Feb 15 12:52:31 2024
    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"


    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (2:250/5@fidonet)
  • From Mike@1:229/310 to Christian Sacks on Thu Feb 15 12: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!


    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: Agency HUB, Dunedin - New Zealand (1:229/310@fidonet)