labbej.eu
← Le blog
C64

Plume, two weeks later: four languages, three contributors and a REU edition

Plume, two weeks later: four languages, three contributors and a REU edition

Plume, two weeks later: four languages, three contributors and a REU edition

Twelve days after its first release, Plume speaks French, English, Danish and Hungarian, has fewer bugs thanks to other C64 users, and has a big brother for the C64 Ultimate.

When I released Plume on November 8, I hoped a few people would try it. I did not expect them to send code. In two weeks, three C64 users have shaped the program: one asked for Danish letters, one wrote the Hungarian edition, and one found a bug I had never noticed, then built a whole new edition on top of Plume. This post is about them.

Danish, then Hungarian

Ulrik Hansen suggested the Danish letters on Facebook. Plume 2.1 added æ, ø and å to every edition, plus a Danish edition with a Danish keyboard layout.

A few days later, mkckOner sent me a patch: a complete Hungarian edition. It adds á, é, í, ó, ö, ő, ú, ü and ű and their capitals to the font, and a keyboard layer on the C= key that follows the AltGr keys of a Hungarian PC keyboard. Capitals were the tricky part: the C64's KERNAL cannot handle Shift and C= together, so the Hungarian edition reads the keyboard itself while C= is held. mkckOner also redrew a few letters, which now look better in every edition, and asked for an underscore: every edition now types _ with C= + -.

Hungarian letters printed in Graphics mode on the MPS-803 (VICE emulator)
Hungarian letters printed in Graphics mode on the MPS-803 (VICE emulator)

Two more ideas came from mkckOner. The first: hide the mouse arrow when it stops moving, because it covers the text you are typing. I like to keep my arrow on screen, so in the Hungarian edition it became an option, ? → Hide idle pointer. The second: the build already made plain .prg programs next to the cartridges. They are now in the download folder too, so Plume also runs without a cartridge: load it from disk with ,8,1, then type RUN.

The bug I had never seen

Then Norbert wrote to me. Norbert uses Plume on a C64 Ultimate with a 16 MB REU, and had noticed that now and then, a key simply didn't register.

The cause was in the joystick code I added in version 2.0. A joystick in port 1 shares its wires with the keyboard, so while it moves, Plume ignores the keyboard for 6 frames. To know when those 6 frames were over, Plume compared the C64's clock with the time of the last joystick move. But it only looked at the lowest byte of that clock, which goes back to zero every 256 frames, about every four seconds. Each time it came around, the old timestamp looked recent again, and Plume threw away whatever was typed during the next 6 frames, joystick or no joystick. Typing fast, about one key in fifty was lost.

Norbert replaced the comparison with a simple countdown. I checked it in the VICE emulator: with Plume 2.3, a letter typed just as the clock comes back around disappears; with 2.4, it stays.

Norbert also fixed a flicker. The line you are typing and the status line at the bottom were erased and redrawn in place, so they blinked on every key. Now they are drawn in a spare buffer and copied to the screen in one go. The buffer is the C64's text screen at $0400, which Plume never shows.

Both fixes are in Plume 2.4, in all four editions, and the commit credits Norbert as co-author. Memory is still tight: the Hungarian edition, with its extra keyboard code, has 28 bytes left.

A REU edition for the C64 Ultimate

The fixes were only a small part of what Norbert sent. Starting from Plume 2.2, and with the help of Claude Code, Norbert built a REU edition for C64s with a RAM expansion, such as the C64 Ultimate:

  • documents of several megabytes instead of 20,000 characters, with a scrollbar and search across the whole document;

  • undo and redo, back to the start of the session;

  • RTF import and export;

  • a file requester, quick save with a journal, and a progress bar;

  • a full Hungarian keyboard layout;

  • keyboard and LED colours on the C64 Ultimate that follow the theme.

I tried it on my C64 Ultimate, and I love it.

Norbert's REU edition with a 92,625-character document open (VICE, 2 MB REU)
Norbert's REU edition with a 92,625-character document open (VICE, 2 MB REU)

The two projects will stay separate, though. My Plume is meant to run on an original C64 without any expansion as well as on the C64 Ultimate, so it has to stay small. Norbert's edition is made for machines with a REU, and it has its own home: github.com/nmakk/plume64. My README now links to it.

A "No limit" button in the online editor

The online editor at labbej.eu/plume splits long texts into documents of 20,000 characters, the limit of Plume. It now has a No limit (REU) button: the whole text becomes a single document, up to a full .d64 disk, about 168,000 characters. Above 64 KB, it uses the PLM3 format of Norbert's edition. Documents of 27,770 and 92,625 characters open completely in Norbert's edition. The regular Plume cannot open them, and the page says so.

The online editor with its new No limit (REU) button
The online editor with its new No limit (REU) button

Tested

  • Plume 2.4, all four editions, in VICE: the lost-key test, selection, and Graphics printing on the emulated MPS-803, identical to 2.3. Not yet on my real machines.

  • The Hungarian edition: in VICE, on screen and on the emulated MPS-803.

  • Norbert's REU edition: on my C64 Ultimate, and in VICE with a 2 MB REU for the online editor test.

As before, I worked on Plume with Claude Code, Anthropic's AI coding assistant.

Get it

Thank you to Ulrik Hansen, mkckOner and Norbert. If you use Plume, in any edition, I'd love to hear from you!