Subj : Help using gettext.js
To   : Digital Man
From : vela025
Date : Tue Oct 22 2024 12:19 am

>Okay, did you try a different user and see what happens?
Yeah it happens to all users.

>call bbs.load_user_text() to re-load the ctrl/text.<lang>.ini file.
This has definaetly fixed mode 7 not using control codes after an ANSI login
and ANSI using text.bbc.ini after a Mode 7 login! Thanks!

>I still can't can't think of a reason why "ansi" and "ascii" would require
different language files.
Some prompts are >40 characters which looks a bit messy when it goes on to a
seperate line. And some use [ ] which in mode 7 displays as a left and right
arrow. Having each as their own lang is a simple way for me to detect which
terminal type the client is using so that custom modules can be loaded for each
terminal type. For example msglist.js now is a script detecting the terminal
type (via checking the lang setting) and then branches off in to
msglistbbc.js/msglist.js

So now the only issue seems to be that all terminal types for the first logon
after a change of terminal type between Mode 7 and ANSI causes ANSI to scroll
at row 13 and *Press any key to continue*. In terms of columns it is either
adding or taking away 40 columns from the column width for both ANSI and Mode
7. Examples of how this manifests itself here:
http://beebs.ddns.net/BeeBS/My_Albums/Pages/Term_Dim.html Is there something
similar to bbs.load_user_text() for terminal row and height?