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!
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).
You could check the server port in your login.js and take a different control path based on that.
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.
Something like this in your exec/login.js:
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?
Sysop: | Jacob Catayoc |
---|---|
Location: | Pasay City, Metro Manila, Philippines |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 21:16:11 |
Calls: | 13 |
Calls today: | 13 |
Messages: | 40,023 |
Posted today: | 8 |