Skip to content

CGTerm 3.0.5: Scene Edition

Choose a tag to compare

@unbreached unbreached released this 15 Nov 13:55

Fixes from a full review of the project: transfers, security, stability, keyboard and display. Built clean on all three platforms and verified with make test plus AddressSanitizer/UBSan runs of the transfer suite.

The transfer fixes are verified against scripted boards in the test suite. They have not yet been confirmed on a real board, so reports from Rainbow and Punter transfers are very welcome.

Transfers

  • Rainbow uploads recover from a retry. The block sender consumed its own length and data pointer, so any resend (a NAK, a timeout, one stray byte from the board) went out empty and the upload could never finish. The reply after each block is now scanned for, so a status byte in front of the board's ACK no longer forces a resend.
  • Rainbow downloads throw away the rest of a block they reject. A leftover payload byte equal to EOT used to end the download as a "success" with a truncated file.
  • Punter downloads no longer lose sync on a stray byte. 3.0.4 fixed the upload side, this fixes the download handshake.
  • A raw PETSCII board is no longer mistaken for a Telnet server. PETSCII art containing pi followed by a graphics byte looked like Telnet negotiation, which switched on Telnet escaping and corrupted every later transfer in the session.
  • XMODEM upload: queued start requests are purged, a block is retried at most 20 times, a single stray CAN no longer aborts, and the upload is only reported complete when the receiver acknowledged the end of file.
  • ZMODEM: a skipped file is no longer counted as sent, and a sender streaming empty packets cannot hold the transfer open forever.
  • Multi Punter: waiting for the file announcement times out instead of waiting until ESC.

Security

  • Text still queued for a board (a paste, or the password step of an auto-login) is dropped when the connection ends or a new one starts. It used to be sent to whatever answered next, including an automatic redial.
  • Automatic ZMODEM download asks once per connection before it accepts, and only reacts to a complete, valid ZMODEM start header.
  • The notes file (auto-login passwords), capture logs, connection history and debug trace are readable by your user only.
  • Downloads: dot-file and reserved names are rejected or renamed, and the file is created exclusively so nothing existing can be written through.
  • Windows package: built with stack protection, ASLR and DEP. Build downloads are checksum-verified, and the unused MPEG and FLAC decoder DLLs are no longer shipped.
  • Telnet option replies are answered once and capped.

Stability

  • A bad line in the config file no longer stops CGTerm from starting. The line is skipped and a notice is shown.
  • Hostname lookup runs in the background. The window no longer freezes on a slow DNS server and ESC cancels it.
  • Bookmarks with _ or : in the host survive a restart.
  • A failed fullscreen switch keeps the session, and Quit asks first while connected.
  • Windows: connection errors show a real reason instead of "No error".

Keyboard and display

  • AltGr works on non-US layouts: AltGr+2 types @ on Swedish and German keyboards instead of sending a colour code. Left Alt is still the Commodore key.
  • Caps Lock only affects letters. It used to turn HOME into CLR and RETURN into shift-RETURN.
  • Paste, macros and auto-login text keep their case on ANSI boards.
  • New: Shift+Backspace sends INST, and \; is a literal semicolon in an auto-login step.
  • ANSI text fills the whole character cell at every zoom, and ANSI mode has a proper underline cursor.
  • Zoom 8 in 40 columns no longer gives a blank window (the limit is 7).
  • Scrollback: PageUp/PageDown move half a screen and typing returns to the live screen.
  • Lower idle CPU use.

The complete list is in CHANGELOG.md.

Downloads

File Platform
CGTerm-3.0-win32.zip Windows, 32-bit (portable, unzip and run)
CGTerm-3.0-macos.zip macOS 26 or later, Apple Silicon (signed .app, "Open Anyway" on first launch)
CGTerm-3.0-source.tar.gz Linux and older macOS: build from source

SHA-256

36fa0259a3cc2d850f1e1ee679c6f1da0bb2446c1d6f8b471412734cc934f992  CGTerm-3.0-win32.zip
d678bff805a9d075c80ed6082d5c380e21f77bca3fa715dbf43d3fea28fbed82  CGTerm-3.0-macos.zip
547dad28acee34c8d839d25a38298c2840227804d683ca1a0f81b7af3e8400eb  CGTerm-3.0-source.tar.gz

Thanks to Larry for the transfer reports.