TIP: Click on subject to list as thread! ANSI
echo: synchronet
to: All
from: nelgin
date: 2024-02-14 16:29:00
subject: Re: Setting a default ter

On Wed, 14 Feb 2024 13:46:12 -0800
"Digital Man" (VERT)  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
--- SBBSecho 3.20-Linux
    
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.