Subj : Help using gettext.js
To   : Digital Man
From : vela025
Date : Thu Oct 17 2024 02:53 pm

> This sounds like something you could add to the top of your logon.js file.

> if(confirm("Are you using a BBC Micro Mode 7 terminal"))
>         user.lang = "bbcmicro";
> else
>         user.lang = "";

Thanks Rob that works well for moving from one UFT-8/ANSI disabled terminal
setting to BBC Mode7 (but not if moving from ANSI or something with UTF-8
enabled). Would changing the contents of user.setting allow me to change the
terminal type settings to
auto off, UTF-8 off, ANSI off, CBM/PETSCII off, EXASCII on

Would something similar to this work:

if(confirm("Are you using a BBC Micro Mode 7 terminal"))
       user.lang = "bbcmicro";
       user.settings &= ~USER_AUTOTERM | USER_ANSI | USER_RIP | USER_WIP |
USER_HTML | USER_PETSCII | USER_UTF8;
       user.settings &= ~USER_EXASCII;
else
       user.lang = "";