Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Bringing computers into the home won't change either one, but may revitalize the corner saloon.


computers / alt.bbs.synchronet / Setting a default terminal type for a specific port

SubjectAuthor
* Setting a default terminal type for a specific portvela025
`* Setting a default terminal type for a specific portDigital Man
 `* Setting a default terminal type for a specific portvela025
  `* Setting a default terminal type for a specific portDigital Man
   `* Setting a default terminal type for a specific portvela025
    `- Setting a default terminal type for a specific portDigital Man

1
Setting a default terminal type for a specific port

<65CCC0AE.51277.sync@vert.synchro.net>

  copy mid

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

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
From: vela025@vert.synchro.net.remove-3uc-this (vela025)
Subject: Setting a default terminal type for a specific port
Message-ID: <65CCC0AE.51277.sync@vert.synchro.net>
X-Comment-To: All
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
X-FTN-PID: Synchronet 3.20a-Linux master/6326f6d0d Feb 13 2024 GCC 12.2.0
X-FTN-MSGID: 51277.sync@1:103/705 2a32befb
X-FTN-CHRS: UTF-8 4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 17
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 14 Feb 2024 13:31:27 UTC
Date: Wed, 14 Feb 2024 05:31:26 -0800
X-Received-Bytes: 1893
 by: vela025 - Wed, 14 Feb 2024 13:31 UTC

Thanks to the help from nelgin@EOTLBBS I now have a pretty well functioning BBS
that supports Acorn BBC Mode 7 (teletext/viewdata). With my current BBS (OBBS
from 1984) the user selects if they would like BBC mode 7 support/vt100 or ANSI
at the start of their session. I'd like to set up SBBS so that connections
coming in on port 6502 default to the terminal settings that allow BBC Mode 7
graphics to show and connections coming in on port *TBD* default to ANSI with
vt100 fallback. Or have everything on 6502 but in the same way as my current
BBS disable auto detection and have the user select their terminal type each
session from 3 different profiles. Is this possible? I've scoured the
different files and cannot find one containing the default terminal settings or
how to disable auto terminal detection. I did try using the PETSCII port as
6502 and changing the .asc files I've used for BBC Mode 7 to .seq but this
corrupts them.
Any help or ideas on how to achieve this, or achieve this in a different way
welcome!
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Setting a default terminal type for a specific port

<65CD14A8.51281.sync@vert.synchro.net>

  copy mid

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

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
From: digital.man@vert.synchro.net.remove-iox-this (Digital Man)
Subject: Setting a default terminal type for a specific port
Message-ID: <65CD14A8.51281.sync@vert.synchro.net>
X-Comment-To: vela025
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <65CCC0AE.51277.sync@vert.synchro.net>
References: <65CCC0AE.51277.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Win32 master/6ed2240b1 Feb 13 2024 MSC 1916
X-FTN-MSGID: 51281.sync@1:103/705 2a3312f9
X-FTN-REPLY: 51277.sync@1:103/705 2a32befb
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 33
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 14 Feb 2024 19:29:57 UTC
Date: Wed, 14 Feb 2024 11:29:44 -0800
X-Received-Bytes: 2823
 by: Digital Man - Wed, 14 Feb 2024 19:29 UTC

To: vela025
Re: Setting a default terminal type for a specific port
By: vela025 to All on Wed Feb 14 2024 05:31 am

> Thanks to the help from nelgin@EOTLBBS I now have a pretty well functioning
> BBS that supports Acorn BBC Mode 7 (teletext/viewdata). With my current BBS
> (OBBS from 1984) the user selects if they would like BBC mode 7
> support/vt100 or ANSI at the start of their session. I'd like to set up SBBS
> so that connections coming in on port 6502 default to the terminal settings
> that allow BBC Mode 7 graphics to show and connections coming in on port
> *TBD* default to ANSI with vt100 fallback. Or have everything on 6502 but in
> the same way as my current BBS disable auto detection and have the user
> select their terminal type each session from 3 different profiles. Is this
> possible? I've scoured the different files and cannot find one containing
> the default terminal settings or how to disable auto terminal detection. I
> did try using the PETSCII port as 6502 and changing the .asc files I've used
> for BBC Mode 7 to .seq but this corrupts them.
> Any help or ideas on how to achieve this, or achieve this in a different way
> welcome!

You could check the server port in your login.js and take a different control path based on that.

What would you need to disable auto terminal detection?

The answer.* file is displayed before login.js is executed, so you might want your answer.asc a blank/0-byte file (your answer.ans could contain ANSI since it'll only be displayehd to ANSI-detected terminals).
--
digital man (rob)

Breaking Bad quote #40:
This Bogdan character... he wrestled you into submission with his eyebrows.
Norco, CA WX: 59.2°F, 63.0% humidity, 0 mph S wind, 0.00 inches rain/24hrs
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Setting a default terminal type for a specific port

<65CD2B1F.51283.sync@vert.synchro.net>

  copy mid

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

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
From: vela025@vert.synchro.net.remove-lgv-this (vela025)
Subject: Setting a default terminal type for a specific port
Message-ID: <65CD2B1F.51283.sync@vert.synchro.net>
X-Comment-To: Digital Man
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <65CD14A8.51281.sync@vert.synchro.net>
References: <65CD14A8.51281.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Linux master/6326f6d0d Feb 13 2024 GCC 12.2.0
X-FTN-MSGID: 51283.sync@1:103/705 2a332972
X-FTN-REPLY: 51281.sync@1:103/705 2a3312f9
X-FTN-CHRS: UTF-8 4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 20
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 14 Feb 2024 21:05:37 UTC
Date: Wed, 14 Feb 2024 13:05:35 -0800
X-Received-Bytes: 1850
 by: vela025 - Wed, 14 Feb 2024 21:05 UTC

To: Digital Man
Thanks for the reply digital man.

>The answer.* file is displayed before login.js is executed, so you might want
your answer.asc a blank/0-byte file (your >answer.ans could contain ANSI since
it'll only be displayehd to ANSI-detected terminals).

I did try something similar to this previously, however if a person logs on
with their BBC Micro (and a Mode 7 .asc file has been created) as they haven't
got to the logon prompt where it loads up their terminal preferences it just
shows them the un-formatted file.

>You could check the server port in your login.js and take a different control
path based on that.

This sound like what I'd like to do, ideally I'd like when they login on port
6502 it sets their formatting as extended ascii on and utf8 and ansi off...but
I'm at a loss on how to do that.
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Setting a default terminal type for a specific port

<65CD34A4.51284.sync@vert.synchro.net>

  copy mid

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

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx12.iad.POSTED!not-for-mail
From: digital.man@vert.synchro.net.remove-1ta-this (Digital Man)
Subject: Setting a default terminal type for a specific port
Message-ID: <65CD34A4.51284.sync@vert.synchro.net>
X-Comment-To: vela025
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <65CD2B1F.51283.sync@vert.synchro.net>
References: <65CD2B1F.51283.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Win32 master/1e734d104 Feb 14 2024 MSC 1916
X-FTN-MSGID: 51284.sync@1:103/705 2a3332f8
X-FTN-REPLY: 51283.sync@1:103/705 2a332972
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 39
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 14 Feb 2024 21:46:15 UTC
Date: Wed, 14 Feb 2024 13:46:12 -0800
X-Received-Bytes: 2548
 by: Digital Man - Wed, 14 Feb 2024 21:46 UTC

To: vela025
Re: Setting a default terminal type for a specific port
By: vela025 to Digital Man on Wed Feb 14 2024 01:05 pm

> Thanks for the reply digital man.
>
> >The answer.* file is displayed before login.js is executed, so you might
> want your answer.asc a blank/0-byte file (your >answer.ans could contain
> ANSI since it'll only be displayehd to ANSI-detected terminals).
>
> I did try something similar to this previously, however if a person logs on
> with their BBC Micro (and a Mode 7 .asc file has been created) as they
> haven't got to the logon prompt where it loads up their terminal preferences
> it just shows them the un-formatted file.

I'm suggesting a blank/0-byte answer.asc file. Have your login.js file display something to these non-ANSI users if you like, but don't make it an answer.* file.

> >You could check the server port in your login.js and take a different
> control path based on that.
>
> This sound like what I'd like to do, ideally I'd like when they login on
> port 6502 it sets their formatting as extended ascii on and utf8 and ansi
> off...but I'm at a loss on how to do that.

Something like this in your exec/login.js:

if(client.socket.local_port == 6502) {
console.autoterm = 0;
console.printfile("somefile");
// etc.
} --
digital man (rob)

Synchronet/BBS Terminology Definition #32:
FREQ = File Request
Norco, CA WX: 61.1°F, 56.0% humidity, 6 mph WNW wind, 0.00 inches rain/24hrs
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Setting a default terminal type for a specific port

<65CD3FE9.51286.sync@vert.synchro.net>

  copy mid

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

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx15.iad.POSTED!not-for-mail
From: vela025@vert.synchro.net.remove-vrt-this (vela025)
Subject: Setting a default terminal type for a specific port
Message-ID: <65CD3FE9.51286.sync@vert.synchro.net>
X-Comment-To: Digital Man
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <65CD34A4.51284.sync@vert.synchro.net>
References: <65CD34A4.51284.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Linux master/6326f6d0d Feb 13 2024 GCC 12.2.0
X-FTN-MSGID: 51286.sync@1:103/705 2a333e3f
X-FTN-REPLY: 51284.sync@1:103/705 2a3332f8
X-FTN-CHRS: UTF-8 4
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 12
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 14 Feb 2024 22:34:19 UTC
Date: Wed, 14 Feb 2024 14:34:17 -0800
X-Received-Bytes: 1604
 by: vela025 - Wed, 14 Feb 2024 22:34 UTC

To: Digital Man
>Something like this in your exec/login.js:

Ahh OK I think that might be something I could manage, thank you.

I'm currently playing with msglist.js so that it presents nicely in mode 7,
however this breaks the ANSI version...could I have two versions of msglist.js
(e.g. msglist.js and msglist7.js) and use a similar logic to above to direct
the user to the correct version? Or would it be best to instead have an extra
menu entry for the adapted msglist.js from the main menu?
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

Setting a default terminal type for a specific port

<65CD4F70.51292.sync@vert.synchro.net>

  copy mid

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

  copy link   Newsgroups: alt.bbs.synchronet
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx06.iad.POSTED!not-for-mail
From: digital.man@vert.synchro.net.remove-11e0-this (Digital Man)
Subject: Setting a default terminal type for a specific port
Message-ID: <65CD4F70.51292.sync@vert.synchro.net>
X-Comment-To: vela025
Organization: Vertrauen
Newsgroups: alt.bbs.synchronet
In-Reply-To: <65CD3FE9.51286.sync@vert.synchro.net>
References: <65CD3FE9.51286.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Win32 master/1e734d104 Feb 14 2024 MSC 1916
X-FTN-MSGID: 51292.sync@1:103/705 2a334dcc
X-FTN-REPLY: 51286.sync@1:103/705 2a333e3f
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
X-Gateway: vert.synchro.net [Synchronet 3.20a-Linux NewsLink 1.114]
Lines: 24
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 14 Feb 2024 23:40:35 UTC
Date: Wed, 14 Feb 2024 15:40:32 -0800
X-Received-Bytes: 2182
 by: Digital Man - Wed, 14 Feb 2024 23:40 UTC

To: vela025
Re: Setting a default terminal type for a specific port
By: vela025 to Digital Man on Wed Feb 14 2024 02:34 pm

> >Something like this in your exec/login.js:
>
> Ahh OK I think that might be something I could manage, thank you.
>
> I'm currently playing with msglist.js so that it presents nicely in mode 7,
> however this breaks the ANSI version...could I have two versions of
> msglist.js (e.g. msglist.js and msglist7.js) and use a similar logic to
> above to direct the user to the correct version? Or would it be best to
> instead have an extra menu entry for the adapted msglist.js from the main
> menu?

It'd be better if you didn't have to break the ANSI "version". Anyway, your msglist.js could detect a "mode 7" terminal somehow and then run msglist7.js (nested). But that's certainly not an ideal design.
--
digital man (rob)

Rush quote #3:
The men who hold high places must be the ones who start... Closer to the Heart
Norco, CA WX: 65.9°F, 47.0% humidity, 2 mph SW wind, 0.00 inches rain/24hrs
--- Synchronet 3.20a-Linux NewsLink 1.114
* Vertrauen - Riverside County, California - telnet://vert.synchro.net

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor