Files
bbs/docs/wiki/PETSCII-and-RIP.md
T
Claude de134e3308 Keep each user's terminal settings for their next call
What a caller switches on their profile (ANSI, UTF-8, sixel, RIP, a
Commodore's width) is kept with their account as settings (users.prefs,
"key=value" pairs) and applied after the next login: ANSI and UTF-8 as
set, sixel and RIP kept off when turned off and on only where the
terminal has them.  An editor setting (full or line) is there for the
full-screen editor.

The API shows them at GET /me and changes them with PATCH /me ("":
forgets one); unknown settings and values are refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 14:13:25 +00:00

4.7 KiB

Beside ANSI terminals, the text BBS serves two other kinds of the BBS era: Commodore 64s and 128s in PETSCII, and RIPscrip terminals, which draw graphics and clickable buttons. Both get the same BBS: messages, mail, files, chat, paging, the sysop's menus and screens.

PETSCII: Commodores

CCGMS, Novaterm, CGTerm, a C64 with a WiFi modem, SyncTERM or another terminal in C64 mode, or a real C64 calling a modem line through app_dmodem.

A listener says which of its callers are Commodores:

[listen c64]
type = telnet
address = :6400
petscii = yes
petscii
no (the default) no Commodores here
yes every caller is one (a port, or a modem line, for C64s)
auto a caller whose terminal is not ANSI (and not known by its type) is watched while it logs in: see below

A terminal type saying petscii, c64, c128, commodore or cbm (over telnet) is a Commodore on any listener.

How auto finds a Commodore

A Commodore's terminal answers no question (a C64 has no status reports, attributes or answerback), so the BBS reads its keys instead. Until it knows, the logon screen and the name prompt are in capitals, which a C64 in its power-on set and any other terminal both read. Then:

the caller the BBS
presses a key only a Commodore has: DEL (0x14), a cursor key (not down, 0x11, which is XON), F1-F8 (0x85-0x8C), CLR (0x93), or types a shifted letter (0xC1-0xDA, unless a UTF-8 continuation byte follows it at once) switches to PETSCII there and then: the screen cleared (and the questions' leftovers with it), the logon screen and the name prompt again
types a name in lower case knows it is not a Commodore (whose unshifted letters arrive as ASCII's capitals); nothing is asked
types a name all in capitals asks PRESS DEL (OR BACKSPACE): a Commodore's DEL makes it PETSCII (and the name, which was typed in lower case, is taken so), anything else leaves it ASCII

Whatever is not settled by the end of the login (a caller logged in by an rlogin or a trusted header) is ASCII. The questions sent to find an ANSI terminal or a VT52 before the name prompt show a few characters on a C64; switching to PETSCII clears them.

What the caller gets:

  • the lower/upper case character set (and shift + C= kept from switching it), the screen cleared
  • 40 columns and 25 rows (the profile's [W]idth switches to a C128's 80): menus in one column, lists that fit (who's online, users, areas, messages, mail, files), text wrapped at 39
  • colors as the C64's color codes, reverse, clearing, cursor movement; box drawing and block characters as its graphics characters; letters with accents without them; what it has no character for as ?
  • what is typed read back: letters as the set has them, RETURN, DEL to erase
  • display files: NAME.seq (PETSCII art, as C64 editors save it) sent as it is, else NAME.asc or .txt translated (see Customization)

Doors are not offered (they are ANSI programs). File transfers are the usual XMODEM, YMODEM, ZMODEM and Kermit (CCGMS and Novaterm have XMODEM); Punter is not.

RIPscrip

RIPterm, and SyncTERM (with RIP on), draw RIPscrip 1.54: vector graphics on a 640x350 EGA screen, with buttons that send keys when clicked.

[listen telnet]
type = telnet
address = :2300
rip = auto
rip
auto (the default) an ANSI terminal that is not a modern one (xterm, screen, putty and friends are not asked) is asked with ESC [ !; one that answers RIPSCRIP... has RIP
yes every ANSI caller has it
no none is asked

The question costs one round trip: a position report follows it, which every ANSI terminal answers, and a RIP terminal's answer comes first.

What the caller gets:

  • every menu (the main menu, and the sysop's own) as a scene: a title bar, a button for each item (its key underlined, clicking it the same as pressing it) and the prompt in a text window below. When a choice is made the scene is cleared and the BBS goes on in text, full screen; whatever that printed waits for a key before the next menu covers it
  • display files: NAME.rip first (RIPscrip, with ANSI in it, in CP437, @-codes filled), then .ans, .asc, .txt. A menu showing a .rip screen of the sysop's has its buttons, not the built-in ones
  • everything else as on any ANSI terminal

A caller can turn RIP off and on in their profile ([R]IP; on only if the terminal answers). What they choose, and a Commodore's width, is kept for their next call (Terminal identification).

See also: Customization, Configuration, Modem callers