Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Non-Determinism is not meant to be reasonable. -- M. J. 0'Donnell


dovenet / Synchronet Discussion / Re: Setting a default terminal type for a specific port

SubjectAuthor
* Re: Setting a default terminal type for a specific portnelgin
`- Re: Setting a default terminal type for a specific portDigital Man

1
Re: Setting a default terminal type for a specific port

<20240214162938.5252f828@wibble.sysadmininc.com>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=2167&group=DOVE-Net.Synchronet_Discussion#2167

  copy link   Newsgroups: DOVE-Net.Synchronet_Discussion
From: nelgin@VERT/EOTLBBS (nelgin)
To: All
Subject: Re: Setting a default terminal type for a specific port
Message-ID: <20240214162938.5252f828@wibble.sysadmininc.com>
Date: Wed, 14 Feb 2024 16:29:38 -0600
X-Comment-To: All
Path: rocksolidbbs.com!not-for-mail
Organization: End Of The Line BBS
Newsgroups: DOVE-Net.Synchronet_Discussion
In-Reply-To: <65CD2B1F.51283.sync@vert.synchro.net><65CD34A4.51284.sync@vert.synchro.net>
References: <65CD2B1F.51283.sync@vert.synchro.net><65CD34A4.51284.sync@vert.synchro.net>
X-FTN-PID: Synchronet 3.20a-Linux master/185965953 Feb 14 2024 GCC 11.4.0
X-FTN-MSGID: 51290.sync@1:103/705 2a334039
X-FTN-CHRS: CP437 2
WhenImported: 20240214144239-0800 41e0
WhenExported: 20240214154815-0800 41e0
ExportedFrom: VERT sync 51290
WhenImported: 20240214162938-0600 4168
WhenExported: 20240214164241-0600 4168
ExportedFrom: EOTLBBS dove-syncdisc 46322
X-Newsreader: Claws Mail 4.2.0git6 (GTK 3.24.33; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
 by: nelgin - Wed, 14 Feb 2024 22:29 UTC

On Wed, 14 Feb 2024 13:46:12 -0800
"Digital Man" (VERT) <VERT!Digital.Man@endofthelinebbs.com> wrote:

> 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.
> }

He might have to specifically set the terminal type to accept IBM
extended ASCII (CP437) otherwise SBBS will filter out the BBC Mode 7
control codes also./sbbs/exec/load/termdesc.js may help with that.
--
End Of The Line BBS - Plano, TX
telnet endofthelinebbs.com 23
---
� Synchronet � End Of The Line BBS - endofthelinebbs.com

Re: Setting a default terminal type for a specific port

<65CD4FF0.51293.sync@vert.synchro.net>

  copy mid

https://www.rocksolidbbs.com/dovenet/article-flat.php?id=2170&group=DOVE-Net.Synchronet_Discussion#2170

  copy link   Newsgroups: DOVE-Net.Synchronet_Discussion
From: digital.man@VERT (Digital Man)
To: nelgin
Subject: Re: Setting a default terminal type for a specific port
Message-ID: <65CD4FF0.51293.sync@vert.synchro.net>
Date: Wed, 14 Feb 2024 15:42:40 -0800
X-Comment-To: nelgin
Path: rocksolidbbs.com!not-for-mail
Organization: Vertrauen
Newsgroups: DOVE-Net.Synchronet_Discussion
In-Reply-To: <20240214162938.5252f828@wibble.sysadmininc.com>
References: <20240214162938.5252f828@wibble.sysadmininc.com>
X-FTN-PID: Synchronet 3.20a-Win32 master/1e734d104 Feb 14 2024 MSC 1916
X-FTN-MSGID: 51293.sync@1:103/705 2a334e4d
X-FTN-REPLY: 51290.sync@1:103/705 2a334039
X-FTN-CHRS: CP437 2
WhenImported: 20240214154240-0800 41e0
WhenExported: 20240214154815-0800 41e0
ExportedFrom: VERT sync 51293
Content-Type: text/plain; charset=IBM437
Content-Transfer-Encoding: 8bit
 by: Digital Man - Wed, 14 Feb 2024 23:42 UTC

Re: Re: Setting a default terminal type for a specific port
By: nelgin to All on Wed Feb 14 2024 04:29 pm

> On Wed, 14 Feb 2024 13:46:12 -0800
> "Digital Man" (VERT) <VERT!Digital.Man@endofthelinebbs.com> wrote:
>
> > 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.
> > }
>
> He might have to specifically set the terminal type to accept IBM
> extended ASCII (CP437) otherwise SBBS will filter out the BBC Mode 7
> control codes also./sbbs/exec/load/termdesc.js may help with that.

For terminal output, CP437 is the default charset, so no 8th bit filtering should be happening.

When you say "accept IBM extended ASCII", it sounds like you're talking about input (from the user's keyboard), but I think you're talking about output (from the server).
--
digital man (rob)

Breaking Bad quote #49:
So you do have a plan? Yeah, Mr. White! Yeah, Science! - Jesse Pinkman
Norco, CA WX: 65.9°F, 47.0% humidity, 2 mph SW wind, 0.00 inches rain/24hrs
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor