Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Advancement in position.


alt / alt.bbs.mystic / Re: Python Script (External)

SubjectAuthor
* Python Script (External)Mike
+* Python Script (External)Martin Kazmaier
|`- Python Script (External)Mike
`* Re: Python Script (External)Christian Sacks
 `- Python Script (External)Mike

1
Subject: Python Script (External)
From: Mike
Newsgroups: alt.bbs.mystic
Organization: Agency HUB, Dunedin - New Zealand
Date: Thu, 8 Feb 2024 20:21 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Mike@f310.n229.z1.fidonet.org (Mike)
Newsgroups: alt.bbs.mystic
Subject: Python Script (External)
Date: Fri, 09 Feb 2024 09:21:02 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <1775632139@f310.n229.z1.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="21798"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: All
View all headers

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!

Subject: Python Script (External)
From: Martin Kazmaier
Newsgroups: alt.bbs.mystic
Organization: Agency HUB, Dunedin - New Zealand
Date: Sat, 10 Feb 2024 07:32 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Martin.Kazmaier@f1101.n340.z1.fidonet.org (Martin Kazmaier)
Newsgroups: alt.bbs.mystic
Subject: Python Script (External)
Date: Sat, 10 Feb 2024 20:32:00 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <18889264@f1101.n340.z1.fidonet.org>
References: <1775632139@f310.n229.z1.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="26590"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: Mike
View all headers

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

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

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

Mi> 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]

Subject: Python Script (External)
From: Mike
Newsgroups: alt.bbs.mystic
Organization: Agency HUB, Dunedin - New Zealand
Date: Sun, 11 Feb 2024 07:13 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Mike@f310.n229.z1.fidonet.org (Mike)
Newsgroups: alt.bbs.mystic
Subject: Python Script (External)
Date: Sun, 11 Feb 2024 20:13:33 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <3695587914@f310.n229.z1.fidonet.org>
References: <18889264@f1101.n340.z1.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="13964"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-Comment-To: Martin Kazmaier
X-MailConverter: SoupGate-Win32 v1.05
View all headers

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

Its a python script completely independant of mystic.

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

Subject: Re: Python Script (External)
From: Christian Sacks
Newsgroups: alt.bbs.mystic
Organization: Agency HUB, Dunedin - New Zealand
Date: Thu, 15 Feb 2024 01:52 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Christian.Sacks@f5.n250.z2.fidonet.org (Christian Sacks)
Newsgroups: alt.bbs.mystic
Subject: Re: Python Script (External)
Date: Thu, 15 Feb 2024 14:52:31 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <3617564358@f5.n250.z2.fidonet.org>
References: <1775632139@f310.n229.z1.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="608"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-MailConverter: SoupGate-Win32 v1.05
X-Comment-To: Mike
View all headers

On 09 Feb 2024, Mike said the following...
Mi> When I'm trying to display ansi block characters I get the following.
Mi> "█".
Mi>
Mi> I am opening the ansi file with cp437 encoding, and everything displays
Mi> 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"

Subject: Python Script (External)
From: Mike
Newsgroups: alt.bbs.mystic
Organization: Agency HUB, Dunedin - New Zealand
Date: Thu, 15 Feb 2024 01:40 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.bbs.nz!.POSTED.agency.bbs.nz!not-for-mail
From: nospam.Mike@f310.n229.z1.fidonet.org (Mike)
Newsgroups: alt.bbs.mystic
Subject: Python Script (External)
Date: Thu, 15 Feb 2024 14:40:02 +1300
Organization: Agency HUB, Dunedin - New Zealand
Message-ID: <1761063792@f310.n229.z1.fidonet.org>
References: <3617564358@f5.n250.z2.fidonet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: news.bbs.nz; posting-host="8IWYKlztXHa0+IViEdY46zrq8kpk7dC9fTbT74JiSDQ";
logging-data="5898"; mail-complaints-to="abuse@news.bbs.nz"
User-Agent: VSoup v1.2.9.47Beta [95/NT]
X-Comment-To: Christian Sacks
X-MailConverter: SoupGate-Win32 v1.05
View all headers

CS> Sounds like python is displaying it with utf8 encoding, change the
CS> 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!

1

rocksolid light 0.9.8
clearnet tor