mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
The screens after the login (menus, message areas, reading and writing, mail, file areas, who's online, the user list, system info, the profile and SSH keys, validation, paging the sysop) were written twice, once for text terminals and once for 3270s. They are now written once in internal/app, as descriptions in internal/view's terms (menus, tables, messages, forms, panels, drafts), and each front end draws them its own way: prompts and keys a page at a time (RIP buttons for menus) on a text terminal, fields and PF keys on a 3270. What only a front end can do stays with it, behind app.Frontend: the logins, display files, chat, doors, transfers (protocols, or IND$FILE), the terminal's line on the profile and the goodbye. The 3270 gains what it lacked: the main menu by letter like the text BBS's, a new scan, messages to other nodes from who's online, validation, SSH keys, editing and removing files, paging with a message left when the sysop is away. The text prompts are as before. Tests: internal/app driven by a scripted front end; the column layout and text key labels; a 3270 (s3270) through areas, posting, reading and the profile, with a text caller reading its post. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
5.9 KiB
5.9 KiB
bbs is a bulletin board system in Go. One telnet port serves both kinds
of terminal: a TN3270 client (x3270, c3270, wc3270, Vista, PCOMM) gets
full 3270 screens with PF keys, through
go3270; any other telnet client
gets a text BBS with ANSI color where the terminal has it. Modem callers
come in through the D-Modem suite: app_dmodem
straight from Asterisk, or modemmenu
after its login.
D-Modem BBS
Node 2, modem at 26400 bit/s
Name (or NEW): alice
Password: **********
Welcome, alice.
Main menu
[M] Message areas [E] E-mail (1 new)
[W] Who's online [U] User list
[P] Your profile [I] System info
[C] Chat [S] Page the sysop
[G] Goodbye
The same caller on a 3270:
D-Modem BBS Main menu Node 1
Welcome, alice.
┌───────────────────────────────────────────┐
│ M Message areas │
│ E E-mail (1 new) │
│ W Who's online │
│ U User list │
│ P Your profile │
│ I System info │
│ C Chat │
│ S Page the sysop │
│ T Your terminal │
│ G Goodbye │
└───────────────────────────────────────────┘
Option ===>
Enter=Select PF3=Back
What there is:
- message areas: read new, list, read by number, post, reply (quoting), reply by mail; areas only the sysop posts in; authors and the sysop delete messages
- private mail: inbox, read, reply, delete
- SSH: logging in by password or key, the text BBS encrypted
- Commodore 64s and RIPscrip terminals: PETSCII at 40 columns; menus as RIP buttons
- VT terminals identified (answerback, DA1, DA2, XTVERSION, VT52): DEC line drawing and Latin-1, bold on monochrome VTs, VT52 escapes
- who's online (and how each caller came: ssh, telnet, tn3270, rlogin, modem with its rate), the user list, system info
- your profile: where you call from, your password, SSH keys, ANSI and UTF-8
- file areas: files listed with their size, uploader, downloads and SHA-256, moved by XMODEM, YMODEM, ZMODEM or Kermit on the text BBS, by IND$FILE on a 3270 (file transfers), or by FTP (FTPS); deleted by their uploader or the sysop
- newsgroups: message areas given a newsgroup name are served by NNTP to newsreaders and exchanged with other news servers (INN and the like)
- FidoNet (or any FTN network): message areas that are echoes, netmail as private mail, and a binkp mailer to exchange packets with links
- doors: DOS door games in dosemu2 (in Docker), with a FOSSIL on COM1 and the usual drop files, or any Linux program, for text callers
- chat: rooms, messages to a node, paging the sysop
- finger and gopher: who is on, and chosen areas in gopherspace
- a web terminal: the BBS in a browser (xterm.js, built in)
- an HTTP API: REST, server-sent events, and WebSockets (JSON or protobuf) where web clients chat with terminal callers; Prometheus metrics
- customization: ANSI art and 3270 screens, menus of the sysop's, @-codes, the prompts' words
- access levels: levels and flags, areas, doors and menus that require them, time and download limits a day, new users validated by the sysop
- new users sign themselves up (or not:
new_users = no) - SQLite, PostgreSQL, MySQL or MariaDB, and
bbs db copybetween them
The pages
| Building | Go, the go3270-sec fork, make |
| Running | first start, systemd, the defaults |
| Administration | the bbs command: users, areas, files, mail exchange |
| Databases | SQLite, PostgreSQL, MySQL, MariaDB; moving between them |
| Configuration | bbs.conf: its sections, listeners |
| Access levels | levels, flags, what areas, doors and menus require, daily limits, validation |
| Customization | screens (ANSI art, 3270), menus, prompts |
| SSH | the SSH listener, keys, host keys |
| Modem callers | app_dmodem and modemmenu |
| TN3270 | 3270 terminals, PF keys, 3270 graphics |
| Sixel graphics | the logo on sixel terminals |
| PETSCII and RIP | Commodore 64s and 128s; RIPscrip graphics and buttons |
| Terminal identification | VT terminals asked what they are: DEC graphics, monochrome, VT52 |
| Files and FTP | file areas, the FTP (FTPS) server |
| File transfers | X/Y/ZMODEM, Kermit, IND$FILE |
| Doors | DOS doors in dosemu2 (Docker), Linux doors |
| Newsgroups and NNTP | the NNTP server, news peers |
| FidoNet | echomail, netmail, binkp |
| Chat and paging | chat rooms, node messages, paging the sysop |
| Finger and gopher | who is on, and the BBS in gopherspace |
| HTTP API | REST, events, WebSockets in JSON and protobuf, tokens, metrics |
| Security | what is guarded, and how |
| Development | the source's layout, the tests |
Future work is in TODO.md.