Emulation Challenged

@makerhacks · 2025-08-29 12:04 · technology

I've been working on an online CP/M emulator that runs in your browser using JavaScript.

And it works!

image.png

Except something that should not have been the difficult part.

Everything seems to mostly work apart from getting a visible flashing cursor that tracks your movements! This should NOT be so hard, especially as I am outputting monospaced text that interprets ansi escape sequences.

But I am, as usual, plumbing together other people's projects and that is tripping me up.

For some reason when the vt100 emulator outputs it adds spans and divs.

Not sure why it couldn't be one big PRE block of text. In fact, I might go back to that idea, or maybe a table that is a 80x25 grid.

I mean, that is how those terminals worked, just cells in 80 columns and 25 rows.

You can, however, switch between different terminals (vt100/ANSI/etc) and wrapping and clipping of text beyond the 80th column.

Partly it is my fault, in the original the text worked from top to bottom but I felt an original terminal would have the text entry at the bottom.

Currently you can mount your own disks in B, C, and D drives (A is the boot disk and is not swappable, though I would like to boot of a virtual hard disk some time in the future).

Microsoft BASIC and a copy of Star Trek are loaded in drive B: on startup.

image.png

image.png

#technology #programming #retro
Payout: 0.000 HBD
Votes: 281
More interactions (upvote, reblog, reply) coming soon.