- Last callers (L, and a callers menu action): each login is recorded (calls: the newest 10000 kept); GET /api/v1/callers. - Feedback to the sysop (K, a feedback action): mail any caller may send, whatever their level allows. - The user list picks a user: their details (a sysop sees their access and files too), and mail to them from there. - A line about oneself, on the profile (Y; - clears it) and PATCH /me's about, shown with one's details. - Expert menus (the expert setting, X on a text terminal's profile): a menu is its prompt, "Command (? for the menu): ", and ? shows it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
5.7 KiB
The BBS's look is the sysop's: screens of their own (ANSI art, text, 3270 screens in color), menus of their own, and the prompts' words. None of it is needed: without it the built-in screens and menus are used.
Screens
Display files go in one directory:
[general]
screens_dir = /etc/bbs/screens
A screen is a name (lower case letters, digits, _ and -) and one or
more files for different terminals:
| file | what | shown to |
|---|---|---|
NAME.ans |
ANSI art in CP437, as ANSI editors (PabloDraw, Moebius, TheDraw) save it; a SAUCE record after ^Z is dropped | ANSI terminals |
NAME.asc |
plain text (UTF-8 or ASCII), a page at a time | any text terminal; 3270s when there is no .3270 |
NAME.txt |
the same as .asc |
the same |
NAME.3270 |
text with color tags (below) | 3270s |
NAME.rip |
RIPscrip (graphics and ANSI) in CP437; its buttons send keys to the menu showing it | RIP terminals |
NAME.seq |
PETSCII, as C64 editors save it, sent as it is (no @-codes) | Commodores |
An ANSI terminal gets .ans, else .asc, else .txt; a RIP terminal
.rip before those; a plain one .asc or .txt; a Commodore .seq,
else .asc or .txt (translated); a 3270 .3270, .asc or .txt. ANSI art goes to a UTF-8
terminal as UTF-8, and to any other as the CP437 bytes it is (what
SyncTERM, NetRunner and DOS terminal programs want). Files are read
each time they are shown, so they can be changed while the BBS runs; the
largest read is 256 KB.
These are shown by themselves:
| name | when | in place of |
|---|---|---|
logon |
when a caller connects, before the name prompt (on a 3270, in the logon screen's upper part) | the system's name, banner and how they came |
newuser |
before a new user's questions | (added) |
welcome |
after the login | the welcome lines (the message of the day still follows) |
goodbye |
at a logoff | the goodbye line |
Others are shown by menus: screen = NAME on a menu, or a screen:NAME
item. screens.sample
has a set to start from.
@-codes
Screens, menu titles, labels and prompts, and the strings take codes that are filled in when shown:
| code | |
|---|---|
@BBS@ @SYSOP@ @LOCATION@ |
the system |
@USER@ @USERLOC@ |
the caller's name, where they call from |
@CALLS@ @POSTS@ @LASTON@ @SINCE@ |
their calls, posts, last call, when they joined |
@NEWMAIL@ |
their unread mail |
@NODE@ @VIA@ @BAUD@ |
this call: node, how (telnet, modem, tn3270), a modem's rate |
@ONLINE@ |
callers on now |
@DATE@ @TIME@ |
now |
@CLS@ |
clear the screen |
@PAUSE@ |
wait for a key (on a 3270, a new page) |
@CODE:20@ pads (or cuts) the value to 20 characters, @CODE:-20@
aligns it right: art keeps its shape whatever a name's length. Anything
else between @s (an e-mail address) is left as it is. The values are
cleaned like anything a caller writes: no escape sequences get into art
through a user's name.
3270 screens
A .3270 file is lines of text with tags that change the color for the
rest of the line:
{turquoise}{bright}*** @BBS@ ***
{blue}A bulletin board, by telnet, modem and TN3270.{default} plain again
{blue} {red} {pink} {green} {turquoise} {yellow} {white}
{default}, and {bright} / {normal}. On a 3270 each change of color
takes a blank column (an attribute byte, as 3270 fields work).
Menus
[menu NAME] sections make menus; [menu main] takes the place of the
built-in main menu, on text terminals and 3270s alike, and the others are
reached from it (and from each other).
[menu main]
title = @BBS@
screen = mainmenu ; shown instead of the list of items (optional)
prompt = "Command: " ; (optional)
m = areas Message areas
e = mail E-mail (@NEWMAIL@ new)
d = doors Doors
l = door:lord Legend of the Red Dragon
b = screen:bulletins Bulletins
g = area:general Straight to General
x = menu:extras Extras
q = logoff Goodbye
[menu extras]
title = Extras
u = users User list
z = back Back
Each item is KEY = ACTION Label: one character (not ; or #, which
begin comments), then what it does:
| action | |
|---|---|
areas mail who users profile info files doors chat page callers feedback |
the built-in parts (callers: the last callers; feedback: mail to the sysop) |
terminal |
a 3270's terminal details |
logoff |
log off (asking first on a text terminal) |
back |
back to the menu before |
door:NAME |
straight into a door |
menu:NAME |
another menu |
screen:NAME |
show a screen |
area:NAME |
straight into a message area |
script:NAME |
run a script of scripts_dir (Scripting) |
With screen =, a text terminal sees the screen (which shows the keys
itself), and a 3270 the screen's .3270 (or .asc, .txt) version if
it has one, else the list of items in a box: a menu drawn as ANSI art
alone still works on a 3270. On a 3270 the key is typed in the option field;
PF3 goes back (on the main menu, logs off if a logoff item is there).
Doors are for text terminals: on a 3270, a door item says so. bbs check refuses a menu that names a menu, door or screen that is not
there, and lists the menus it read.
Strings
[strings]
name_prompt = "Handle: "
new_name_prompt = "Handle (or NEW): "
password_prompt = "Password: "
command_prompt = "@USER@ @ @BBS@ > "
pause = "-- more --"
logoff_confirm = "Leaving so soon, @USER@?"
welcome = "Hi @USER@, @NEWMAIL@ new letters."
Each takes @-codes; quote a value to keep spaces at its end. welcome
is the 3270 main menu's greeting too.
See also: Configuration, Doors