Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

I am NOT a kludge! I am a computer! -- tts


computers / 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
Python Script (External)

<1775632139@f310.n229.z1.fidonet.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2308&group=alt.bbs.mystic#2308

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.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
 by: Mike - Thu, 8 Feb 2024 20:21 UTC

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!

Python Script (External)

<18889264@f1101.n340.z1.fidonet.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2310&group=alt.bbs.mystic#2310

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.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
 by: Martin Kazmaier - Sat, 10 Feb 2024 07:32 UTC

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]

Python Script (External)

<3695587914@f310.n229.z1.fidonet.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2311&group=alt.bbs.mystic#2311

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.org!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
 by: Mike - Sun, 11 Feb 2024 07:13 UTC

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.

Re: Python Script (External)

<3617564358@f5.n250.z2.fidonet.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2312&group=alt.bbs.mystic#2312

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.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
 by: Christian Sacks - Thu, 15 Feb 2024 01:52 UTC

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"

Python Script (External)

<1761063792@f310.n229.z1.fidonet.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=2313&group=alt.bbs.mystic#2313

  copy link   Newsgroups: alt.bbs.mystic
Path: i2pn2.org!i2pn.org!news.furie.org.uk!newsfeed.endofthelinebbs.com!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
 by: Mike - Thu, 15 Feb 2024 01:40 UTC

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
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor