▓ CGTerm3.0.4
GitHub

BBS · demoscene · legacy · 2026

CGTerm 3.0.4

Terminal for Commodore 64 bulletin boards

PETSCII-native terminal for Commodore 64 bulletin boards: Telnet, file transfers, disk images, cross-platform SDL builds for macOS, Linux, and Windows. MagerValp’s CGTerm, carried forward as this scene edition.

< BOARDS ON AIR >

The C64 boards from CGTerm’s phonebook, ready to dial. Loading the phonebook…

Dialling…

WEB TERMINAL

In-browser session to Frozen Floppy BBS via fTelnet. Press DIAL on any board above to call it instead. The widget loads only after you press the button below (external script; allow it if your browser blocks third-party content).

bbs.retrohack.se:64128

fTelnet is not loaded until you request it, to keep the page fast and avoid unnecessary third-party requests.

Native client: cgterm bbs.retrohack.se 64128

< DEV LOG >

  • Loading…

LATEST COMMITS

github.com/unbreached/CGTerm-3.0

  • Loading…
All commits

< ABOUT >

CGTerm is the client MagerValp’s vision deserves on today’s machines: real C64 boards over Telnet, PETSCII on the glass, transfers and disk images done the way sysops and callers still expect, with SDL builds for macOS, Linux, and Windows. Many of us learned the network by watching characters crawl across the screen at 9600 baud, greeting demos before the menu, trading files and mail in a culture that treated knowledge as something meant to move freely. Bulletin boards, the demoscene, and the old curiosity-driven scenes are part of how all of this began; nothing that came later, not even the wave of AI we have now, erases that root. This project exists to keep the line open and the legacy breathing.

The original code is MagerValp’s; this scene edition is a deep refresh by David “m00p” Jacoby and Genesis*Project, with sysops, swappers, and callers who still think in blocks. I take no credit for MagerValp’s foundation. This release is for the community, the build many of us were waiting for, so BBSing stays a little easier and the people keeping lines up stay visible. New hands at the keyboard are welcome. We stand at the edge of powerful AI and vast clouds, but the glow of this era is still the beginning we build from. That legacy should never die.

Code
David “m00p” Jacoby (Genesis*Project)
Music
Mr.Death
Support
mermaid
QA
Larry, Jucke, SkyHawk, hedning
Bug reports
mrdudz, THE-MrMicro (3.0.2 fixes), Larry (3.0.3/3.0.4 transfer testing)
Original
MagerValp

For callers and sysops (transport security): typical BBS access uses Telnet (cleartext). Traffic can be observed on untrusted networks, as with historical dial-up paths converted to TCP. Use strong, unique passwords per board where possible, and treat the session like any unencrypted terminal connection.

< FEATURES >

Demo splash

Demoscene-style intro in the spirit of greet disks and party screens: vectorballs, plasma, rotozoom, wireframe morph, XM module, sine scroller, greetings; CRT-style power-down when you exit.

Modem sim & audio

Optional connection theatre: green-phosphor look, AT sequence with phone book, dial tone, DTMF, and carrier-style audio (approximate V.34-era line). For anyone who still remembers pacing the scroll at 9600 baud. Toggle from the menu. Bell and modem sounds now work on macOS and Linux too, with mute and volume adjustable while you are connected, and the XM music loops without a gap. The dial sequence runs first and the board is called when the modem answers, so no board times out while you listen; ESC skips to CONNECT.

ZMODEM

Batch send and receive with real file names and sizes, crash recovery to resume broken downloads, CRC-32, and auto-start the moment the board begins sending. No more typing file names twice.

Transfers NEW

ZMODEM, Multi Punter (batch), Rainbow, XMODEM variants (checksum, CRC, 1K), and Punter. Last protocol is preselected (T + Return), every transfer is logged with bytes, time and cps, and you get an on-screen summary. Progress UI, optional hex view, cancel that no longer stalls the other end, free-space checks, and filename conversion between PC extensions and C64 comma types (e.g. .prg ↔ ,p). Uploads are stored as PRG/SEQ according to the file you send; debug mode (-b) records every transferred byte. Cap the receive speed to a retro baud rate (2400/1200/300) so message scroll stays readable. 3.0.3 fixed a Punter/Rainbow upload that could go out empty, and 3.0.4 makes the Punter handshake tolerate the status text real boards print around a transfer.

Disk images

Open D64, D71, and D81 images like folders; set an image as download target; extract and inject PRG/SEQ/USR with PETSCII-aware names and block accounting. New disk tools: validate (rebuild the BAM), lock/unlock, rename disk and ID, extract to the host, insert into an image, a real CBM-style listing with splat and lock markers, and support for images with error tables.

Fonts

Ten header and nine body pixel fonts, selectable in settings, plus support for adding converted TTF/OTF assets through the project’s usual pipeline.

Terminal & ANSI NEW

Status line, capture toggle, copy the screen as text, and paste that transliterates UTF-8. Much fuller ANSI: scroll regions, pending wrap, save/restore cursor, insert/delete/erase characters, iCE colours, truecolour, line drawing, xterm keys and Alt hotkeys. Pick the display case: set case = upper or case = lower in the config, or flip it live with Commodore+Shift.

Keyboard NEW

Swedish, US, and German-oriented layouts on macOS, Linux, and Windows, and any extra layouts you drop into the assets folder are picked up automatically. Keyboard test screen with PETSCII mapping; macros record RETURN, cursor keys and F-keys. Pick a layout at startup, e.g. cgterm -k assets/mac-se-c64.kbd (US/SE profiles for mac, linux and windows ship in assets/).

UI

Categorized menus, colour-distinguished file selector (directories, disk images, files), consistent accent theme, and visible transfer path so download and upload directories stay obvious. Drag the window to any size: crisp mode snaps to whole zoom steps, smooth mode fills any size, and the menu and logo scale with the window. Switch 40/80 columns from the Options panel.

Bookmarks

Forty entries with host, port, alias, and terminal mode fields; per-board notes (now with a real cursor for editing) and auto-login scripts; bookmarks live in their own file, so deleting one sticks; numeric quick-connect where configured.

Sessions

Connection history with one-key redial, per-bookmark auto-login scripts (in a bookmark’s notes: login=w:handle;s:M00P;cr;w:password;s:secret;cr; case and colour codes are ignored when matching, so C*Base logins work), automatic reconnect after any dropped line, and an options panel. Ten text macros on Cmd/Win+0–9, and a cursor-editable notes field for the login scripts. IPv6 support (IPv4 tried first for old boards), and Telnet negotiation in ANSI mode.

Hardening

November 2026 security pass, shipped in 3.0.2: a heap overflow on 40/80 column switch, non-cancellable transfer hangs, a file-descriptor leak, Telnet and ANSI flood freezes and a notes-file wipe are all fixed, on top of bounded string handling, filename validation for downloads, protocol length limits and warning-clean builds on GCC and Clang. Reviewed, fuzzed under ASan/UBSan, documented in the source package.

Platforms

Windows portable archive (settings, bookmarks and logs in %APPDATA%\CGTerm); ready-made macOS app for Apple Silicon; Linux via make, make install and make uninstall. Native MinGW build on Windows, make test and make fuzz, and continuous integration on GitHub Actions.

< SCREENSHOTS >

Click a thumbnail for fullscreen. Keyboard: Tab to move focus, Enter to open, Escape to close the viewer.

< CHANGELOG >

cgterm@localhost:~$ cat CHANGELOG █

CGTERM 3.0.4 / SCENE EDITION full changelog / nfo Genesis*Project · 2026

─── 3.0.4 · november 2026 ───

Upload fix on top of 3.0.3, built clean with zero warnings and verified with make test including a new regression test. Thanks to Larry for the upload report. Packages and SHA-256 checksums on the GitHub release page.

  • [!]Punter and Multi Punter uploads work on real boards again. The handshake that waits for the board’s GOO/ACK/SYN read the stream in rigid 3-byte groups, so any status byte a board printed around the transfer knocked it out of sync and the upload failed. It now scans the stream for the handshake word and skips stray bytes, the way the download path, the Rainbow block start and the block S/B wait already do. Downloads and XMODEM were never affected
  • [+]Regression test: a noisy scripted C*Base receiver that injects status bytes around each response. It fails on the old code (0 files, ~63 s timeout) and passes with the fix

─── 3.0.3 · november 2026 ───

Maintenance release on top of 3.0.2, built clean with zero warnings and verified with make test. Thanks to Larry for the detailed transfer reports. Packages and SHA-256 checksums on the GitHub release page.

  • [!]The case = upper / case = lower setting in the config file now actually takes effect: it was read at startup and then overwritten by a hardcoded case switch. The default is unchanged (lower/upper, what PETSCII boards expect); pick upper/graphics in the config if you want it, or flip the case live with Commodore+Shift (Alt+Shift)
  • [!]The keyboard layout profiles (mac-se-c64.kbd, mac-us-c64.kbd, linux/win variants) now live in assets/ where the README and in-app help point, so cgterm -k assets/mac-se-c64.kbd works out of the box
  • [!]Upload regression from 3.0.2 fixed: the hardening pass clamped the upload size to the 64 MB download limit and returned zero past it, which could make a Punter, Multi Punter or Rainbow upload send an empty file. XMODEM was never affected
  • [!]The transfer progress window no longer clips a long announced filename

─── 3.0.2 · november 2026 ───

Point release built 1 November 2026 from the bug reports that came in after 3.0.1. Thanks to mrdudz and THE-MrMicro for the careful, detailed GitHub issues that drove these fixes.

  • [!]Auto-login ignores the colour, cursor and case codes boards sprinkle through their prompts, so the expect text is just the letters you see on screen. C*Base logins work now (#2)
  • [!]RUN/STOP (Tab) sends CHR$(3), so it actually aborts a listing or a C*Base pause/more prompt; it used to send a dead byte (#4)
  • [!]A too-large saved zoom can no longer open the window as an unusable black rectangle: the zoom is clamped to what fits the display and the stored value is corrected (#12)
  • [!]The window repaints after alt-tab or being uncovered instead of staying blank until the next change (#11); dragging it no longer flickers
  • [!]Menu keys [O] Options, [X] Copy screen and [Y] History work again (the menu swallowed the keypress), and an empty macro slot no longer breaks config loading
  • [+]Commodore+Shift (Alt+Shift) switches the display charset case straight from the terminal, like a real C64 (#9)
  • [+]Receive speed can be capped to an old-modem baud rate (2400/1200/300 …) in Options [R], so text does not scroll past faster than you can read (#3)
  • [+]Window scaling is selectable in Options [W]: smooth (fills any window size) or crisp (snaps to whole zoom steps); the menu and the offline logo scale with the window instead of staying tiny on big screens (#1, #6)
  • [+]Ten editable text macros, fired with Cmd/Win+0–9 or from Options [M]; stored as macro0..macro9, \r sends RETURN (#8)
  • [+]Bookmark notes editor has a real cursor: arrow keys, Home/End, Insert/Delete, so a typo no longer means retyping the line (#5)
  • [+]Options panel [O] is listed in the main menu, local echo shows its ON/OFF state there, the panel is colour-coded and every menu shares one palette (#7, #10)
  • [+]Help screen documents the special keys (RUN/STOP, cursor, DEL, f-keys, Alt+Shift) and a working C*Base auto-login example (#4)
  • [!]Plus the full security and stability pass below (overflow, transfer freezes, DoS and resource-leak fixes); detail in REVIEW-2026-10-31.md in the source package

─── security & stability · november 2026 ───

Full-codebase security review (31 October 2026), first shipped as rebuilt 3.0.1 binaries on 1 November and now part of 3.0.2: every finding fixed, warning-clean build, make test green, disk-image fuzzer clean under ASan/UBSan.

  • [!]Fixed a heap overflow when switching 40/80 columns at an odd zoom: the font surface and the dirty-line array were sized with a stale character height
  • [!]File transfers can no longer hang the client: ESC cancels even while a board keeps sending, and the ZMODEM, XMODEM and Rainbow receive loops are all bounded against a byte flood
  • [!]Disk images: fixed a file-descriptor leak on every image load; the D71 free-block count no longer trusts a crafted BAM
  • [!]Bookmarks: a write error while saving notes can no longer wipe the notes file, and a comma in a bookmark name no longer corrupts the entry on reload
  • [!]Network: a flood of Telnet option negotiation or ANSI status queries can no longer freeze the window or be amplified back at the board
  • [!]Downloads: aggregate batch size cap, the output file is always closed on a write error, and received filenames with : or more Windows reserved device names are rejected
  • [!]Windows: when %APPDATA% is unset the per-user files fall back to the user profile instead of the launch directory
  • [!]Hardening: temp files honor TMPDIR, login pause values are clamped, several NULL and signed-char edge cases fixed. Full detail in REVIEW-2026-10-31.md in the source package

─── 3.0.1 · october 2026 ───

  • [!]Punter / Multi Punter upload: the file type byte was reversed, so every 3.0 upload landed on the boards as a SEQ file nobody could download. PRG is now sent as PRG, SEQ as SEQ
  • [!]Phonebook: boards listed in the config file came back after being deleted. Bookmarks now live only in the bookmark file (moved there automatically on first start)
  • [!]Splash: “X” to never show the intro again is checked and reported when the setting cannot be saved; Windows settings live in %APPDATA%\CGTerm so this no longer happens in Program Files
  • [+]Window can be dragged to any size and snaps to the nearest zoom step (1x–8x); 40/80 columns is a key in the Options panel, PETSCII 80 columns included
  • [!]Oldskool modem: the phone-book animation is gone and the real connection is made when the modem “answers”, so boards no longer start their login timers during the dial sequence. ESC skips to CONNECT
  • [+]ZMODEM: batch send/receive, file names and sizes, crash recovery, CRC-32, auto-start when the board sends
  • [+]Transfers: last protocol preselected (T + Return), transfer log with bytes/time/cps, on-screen summary, cancel prompt no longer stalls the peer; debug mode (-b) traces every transfer byte
  • [+]Multi Punter upload: waits for a slow 1541 board instead of giving up after 3 seconds, opens D64 files before announcing them, stops the batch on a failed file and reports it
  • [+]XMODEM: CRC to checksum fallback, bounded handshakes, cancel during send, 0-byte files
  • [+]Punter: one-byte last blocks no longer lost, duplicate block guard, empty files
  • [+]Disk tools: validate (rebuild BAM), lock/unlock, rename disk/ID, extract to host, insert into image, CBM listing with splat/lock markers, error-table images, D81 directory and D71 allocation fixes
  • [+]Terminal: status line, capture toggle, copy screen text, paste transliterates UTF-8, macros record RETURN/cursor/F-keys
  • [+]ANSI: scroll regions, pending wrap, DECSC/DECRC, ICH/DCH/ECH, iCE colours, truecolour, line drawing, xterm keys, Alt hotkeys; hide cursor and reverse video fixed; termmode = ansi loads the right font
  • [+]Network: IPv6 with IPv4 first, Telnet negotiation offered in ANSI mode, 0xFF handled correctly on Telnet and raw boards, no SIGPIPE / EAGAIN losses
  • [+]Session: connection history with redial, per-bookmark auto-login scripts, reconnect after any drop, options panel, keyboard layouts scanned from assets
  • [+]Audio: bell and modem sounds on macOS/Linux, runtime mute and volume, gapless XM loop
  • [+]Build: native MinGW build, make test / make fuzz, GitHub Actions CI, make uninstall / distclean, %APPDATA% on Windows
  • [!]Dozens of further bug fixes, listed in REVIEW-2026-10.md in the source package

─── what is this release ───

Major update to the C64 BBS terminal MagerValp gave the scene. Same heart: real boards, PETSCII on glass, files in motion. The codebase is cleaned and runs on SDL 1.2 via sdl12-compat (on top of SDL2/SDL3); the polish nods to demoscene intros, modem-era mood, batch transfers, disk tools, and UI work for people who still enjoy watching bytes.

─── file transfers & disk images ───

  • [+]Punter: classic C64 BBS protocol (send + receive)
  • [+]Multi Punter: batch download + upload, filename announce, C*BASE-style batch end, drain between files
  • [+]Rainbow: upload and download where the BBS supports it
  • [+]XMODEM: checksum, CRC, and 1K block variants
  • [+]Interactive transfer UI: progress, live hex feed, cancel with confirm, PC ↔ 1541 style cues
  • [+]D64 / D71 / D81: open as directories, pick image as download target, extract / inject PRG/SEQ/USR, PETSCII-aware names, block-free checks
  • [+]Filename conversion: e.g. .prg ↔ ,p for C64 naming
  • [+]Temp files: mkstemp / Windows temp APIs for uploads & downloads

─── terminal, ansi & keyboard ───

  • [+]PETSCII + ANSI (80 cols in ANSI), toggle from menu
  • [+]Telnet IAC for chat mode; raw bytes for protocols so 0xFF isn’t eaten
  • [+]Clipboard paste, macro record/playback, ten hotkey text macros (Cmd/Win+0–9)
  • [+]Keyboard profiles (US / SE / DE) + keyboard test view
  • [+]PETSCII modifiers: Commodore key, control colours

─── ui / scene polish ───

  • [+]Demo-style splash: vectors, plasma, rotozoom, wireframe morph, scroller, greetz; tracker music on supported builds; CRT power-off on quit
  • [+]Modem theatre: phosphor, fake AT dial, phone book, V.34-ish audio (menu toggle)
  • [+]Menus by category; pink / cyan / neon theme
  • [+]File selector: colour hints for dirs, disk images, files; path line in menu
  • [+]Font system: header + body pixel fonts, in-app picker, TTF/OTF pipeline

─── bookmarks & session ───

  • [+]40 bookmark slots: host, port, alias, term mode
  • [+]Per-bookmark notes (separate file)
  • [+]Quick connect: number keys 0–9
  • [+]Connection history logging

─── security & stability ───

  • [+]Downloads: filename validation; block .., slashes, controls, Windows reserved devices (CON, COM1–9, …)
  • [+]Punter: bounded handshake; block length clamped to internal buffer
  • [+]Multi-Punter: bounded remote filename
  • [+]Config: hostname/alias/port validation; safer path joins
  • [+]net_connect: reject empty host; close socket on failed resolve (no FD leak)
  • [+]Bookmarks: rollback host alloc if alias malloc fails
  • [+]ANSI: clamp CSI params against pathological repeat loops
  • [+]Prefer bounded string APIs; clean build on GCC/Clang

─── networking ───

  • [+]Non-blocking TCP connect: ESC can cancel
  • [+]Unix: getaddrinfo + AI_ADDRCONFIG → IPv4
  • [+]Windows zips may use legacy resolver; still IPv4-first for BBS interop

─── audio / music ───

  • [+]Windows: SDL_mixer + libmikmod path (XM/MOD/IT) where enabled
  • [+]macOS/Linux: libopenmpt + SDL when built with those deps
  • [+]Volume control; graceful fallback if audio init fails

─── platforms & build ───

  • [+]Windows: portable ZIP
  • [+]Linux: make + optional sudo make install
  • [+]macOS: self-contained signed app (Apple Silicon); building from source still possible
  • [+]Cross-compile: MinGW from Unix documented

─── docs & help ───

  • [+]In-app help: shortcuts, transfers, ANSI, C*BASE user cheatsheet, sysop hints

─── known limitations ───

  • [!]BBS = classic Telnet, cleartext on the wire. Trust your network; don’t reuse critical passwords.
  • [!]Roadmap (not promised): TLS where boards support it, file digests, sandboxing; see GitHub issues/PRs.

─── greetz & credits ───

Respect forever to MagerValp for the original CGTerm and the BBS culture it stands for. Scene Edition: code David “m00p” Jacoby (Genesis*Project), music Mr.Death, support mermaid, QA Larry / Jucke / SkyHawk / hedning, bug reports mrdudz / THE-MrMicro, and every sysop still running a C64 (or bridge) board.

< DOWNLOAD >

Latest release v3.0.4 · · served from GitHub Releases with release notes and SHA-256 checksums · all releases

Windows

Portable archive · no installer

Extract the zip and run cgterm.exe. Dependencies ship with the archive as documented in the bundle. Settings, bookmarks, notes and logs live in %APPDATA%\CGTerm.

CGTerm-3.0-win32.zip

macOS

App bundle · Apple Silicon · macOS 11+

Unzip and drag CGTerm.app to Applications. The app is signed but not notarized: on macOS 15 the first launch needs System Settings › Privacy & Security › Open Anyway (right-click › Open is no longer enough). Intel Macs: install SDL2 and libopenmpt (see README), unpack the source and run make.

CGTerm-3.0-macos.zip

Linux

Makefile install

curl -LO https://github.com/unbreached/CGTerm-3.0/releases/latest/download/CGTerm-3.0-source.tar.gz
tar xzf CGTerm-3.0-source.tar.gz
cd CGTerm-3.0
make && sudo make install
CGTerm-3.0-source.tar.gz Clone on GitHub

< GREETZ >

  • Abyss Connection
  • Arsenic
  • Booze Design
  • Camelot
  • Cosine
  • Crest
  • Danish Gold
  • Dutch Cracking Team
  • Dynamic Duo
  • Eaglesoft
  • Eclipse
  • Excess
  • Fairlight
  • Finnish Gold
  • FLT
  • Genesis Project
  • Hitmen
  • Hokuto Force
  • Ikari + Talent
  • Laxity
  • Nostalgia
  • Onslaught
  • Razor 1911
  • Red Sector
  • Remember
  • Software of Sweden
  • Success + TRC
  • Swedish Cracking Crew
  • The Sharks
  • The Silents
  • The Supply Team
  • Triad
  • TRSI
  • West Coast Crackers
  • Information that moves freely
  • Demoscene craft
  • Curiosity in the old exploration tradition
  • Every sysop still holding a line open

Feedback and discussion welcome on the board: telnet://bbs.retrohack.se:64128