Claude b45dfa58d9 Customization: screens of the sysop's, menus, @-codes, strings
screens_dir holds display files by name: NAME.ans (ANSI art in CP437,
SAUCE dropped; UTF-8 to UTF-8 terminals, CP437 bytes to the rest),
NAME.asc/.txt (text, paged) and NAME.3270 (text with {color} tags).
logon, newuser, welcome and goodbye are shown by themselves, on text
terminals and 3270s; others by menus.  @-codes (@USER@, @NEWMAIL@,
@NODE@, @ONLINE@ ... with @CODE:20@ widths, @CLS@, @PAUSE@) are filled
in, their values cleaned.

[menu NAME] sections: KEY = ACTION Label, actions the built-in parts or
door:, menu:, screen:, area:; [menu main] replaces the built-in main menu
on both kinds of terminal, with an optional screen in place of its list.
[strings]: the login and command prompts, the pause, the logoff question
and the welcome.  bbs check refuses menus naming what is not there.

screens.sample: a set of screens to start from.  Tested: the screens
package; menus and strings in the configuration; a text caller through
ANSI art, strings, menus and screens; a 3270 (s3270) through colored
screens and the sysop's main menu.  Wiki page Customization.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-11 02:32:22 +00:00
2026-10-10 18:09:22 +00:00

bbs: a bulletin board for telnet, TN3270 and modem callers

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.
     1  Message areas
     2  E-mail   (1 new)
     3  Who's online
     4  User list
     5  Your profile
     6  System info
     7  Your terminal
     8  Chat
     9  Page the sysop
     X  Log off
   Option ===>
 Enter=Select  PF3=Log off

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
  • who's online (and how each caller came: telnet, tn3270, rlogin, modem with its rate), the user list, system info
  • your profile: where you call from, your password, 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, 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
  • customization: ANSI art and 3270 screens, menus of the sysop's, @-codes, the prompts' words
  • new users sign themselves up (or not: new_users = no)
  • SQLite storage, one file

Quick start

Go 1.24 or later:

make                                    # or: go build ./cmd/bbs
bbs -config /etc/bbs/bbs.conf check     # the configuration, its warnings
bbs -config /etc/bbs/bbs.conf init      # the database, with two areas
bbs -config /etc/bbs/bbs.conf user add sysop -sysop
bbs -config /etc/bbs/bbs.conf serve

bbs.conf.sample has every option, and bbs.service.sample runs it under systemd. go3270 is replaced by the private go3270-sec fork: see Building.

Documentation

The documentation is in the wiki:

Building Go, the go3270-sec fork, make
Running first start, systemd, the defaults
Administration the bbs command: users, areas, files, mail exchange
Configuration bbs.conf: its sections, listeners
Customization screens (ANSI art, 3270), menus, prompts
Modem callers app_dmodem and modemmenu
TN3270 3270 terminals, PF keys, 3270 graphics
Sixel graphics the logo on sixel terminals
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
Security what is guarded, and how
Development the source's layout, the tests

Its pages are kept in docs/wiki: edit them there (the Wiki workflow publishes them, or docs/wiki/publish.sh). Future work is in TODO.md.

S
Description
A bulletin board system in Go for telnet, SSH, TN3270 and modem callers
https://d-modem.github.io/bbs
Readme AGPL-3.0
9.7 MiB
0 Stars 1 Watchers 0 Forks
Languages
Go 81.3%
CSS 9.7%
HTML 8.2%
JavaScript 0.6%