Files
amiga/RetroTerm
..

RetroTerm for Amiga

Native Amiga BBS Telnet client with Commodore PETSCII and monochrome ASCII/ANSI terminal modes. Independent project, separate from the desktop demos.

Requirements

AmigaOS 3.1, graphics.library v40, a 15-bit or higher RTG Workbench with Picasso96API.library v2, bsdsocket.library v4, Fast RAM. Developed/tested on WinUAE 68040 + JIT. Real hardware performance untested.

Use

Enter host/port and press Connetti. RetroCampus: bbs.retrocampus.com:6510 for 40x25 PETSCII; port 23 for the platform selector, then 4 for plain ASCII or 8 for Linux UTF-8. Changing terminal mode disconnects and clears the screen; changing phosphor colour updates the existing normal screen immediately. PETSCII keeps the Commodore palette. Settings are saved beside the executable.

F1 green, F2 amber, F3 white; F4 ASCII/ANSI; F5 PETSCII; F6 connect; F7 disconnect; F8 local echo. Arrow keys, Return and Backspace are translated for the selected terminal. Close gadget exits.

Supports Telnet IAC escaping, binary/echo/SGA/TTYPE/NAWS negotiation, a bounded nonblocking transmit queue and connection timeout. PETSCII supports the upper/graphics and lower/upper sets, 16 colours, reverse, clear/home, cursor movement, insert/delete and scrolling. ANSI support is a practical subset: cursor addressing, erase, SGR, save/restore, scroll region, wrap. UTF-8 decoding accepts fragmented sequences and maps supported Unicode to CP437/block glyphs; malformed sequences fall back to CP437. UTF-8 auto-detection can be ambiguous with some legacy CP437 byte sequences. Unsupported Unicode shows ?. No SSH or file-transfer protocols in this version.

The renderer caches the terminal cells and sleeps between incoming data, UI events and cursor blinks. No continuously running animation loop.

Build

Install VBCC m68k-amigaos, VASM, VLINK and NDK/network headers, then:

./build.ps1 -Toolchain C:/path/to/toolchain

Copy build/RetroTerm, font.bin, bell.raw and RetroTerm.info together. Use Stack 131072 for CLI launch.

The generated bitmap font and icon are included. Recreate them with Python, Pillow, fontTools and the bundled CC0 fonts:

python generate_font.py
python icon.py
python generate_bell.py

Font sources

Original font files and notices are under third_party/. No Amiga/C64 ROM is bundled.

Verification

core-tests.c checks PETSCII controls/colour/reverse, ANSI cursor/SGR/erase/wrap, fragmented UTF-8 and malformed fallback; it also feeds 60,000 deterministic fuzz bytes and checks cursor bounds. Run the native CoreTests executable to write core-tests.log beside it. Live connection and keyboard navigation tested against RetroCampus.

PETSCII font rasterization samples the original CC0 outline coordinates directly on the 8x8 grid, bypassing FreeType bearing/hinting shifts in semigraphics. Run python test_font.py for block/join regression checks.

Terminal bell

ASCII BEL (0x07) and PETSCII 0x07 play an original soft 740 Hz sine chime with a quiet overtone. Duration 140 ms, cosine attack/release, Paula volume 18/64, stereo. Playback is asynchronous; repeats are coalesced and limited to one start per 360 ms. Audio channels are requested at minimum priority with NOWAIT and released on completion. The device BeginIO entry is called directly so ADIOF_PERVOL is preserved; Exec SendIO must not be used for audio.device. If no channel can be allocated, that bell is skipped. No sound is played for BEL used as an OSC title terminator.

F9 previews the sound. F10 toggles mute, saved with the other settings. The default is enabled. BellTest provides a native audio.device completion check; build with build-tests.ps1.

Ctrl+Invio: alterna finestra e tutto schermo sul Workbench. Mantiene connessione, contenuto del terminale e ripristina posizione e dimensioni della finestra.