by david-given · 7y ago · 0 comments
Eeeaggh. Yes, this took a while. I started after lunch and finished sometime after midnight (look at the clock in the bottom right hand corner of the screen). I'm still kicking myself at some of the dead ends I went through.
The result (even after I cleaned it up after the stream) is still a bit slow. The biggest issue is that it redraws the entire line every time you press a key in insert mode; fixing this is moderately straightforward, as I have all the information to know where the first modified character is, but it'll require some refactoring.
The biggest think I want next is a yank buffer, but the only realistic option is to store it on disk, which would be painfully slow. Being able to do repeated inserts would be nice, too.
I actually know Bram Moolenaar; maybe I should ask how he did it...
I’m no expert, but I think the Kaypro doesn't have a real serial port between the terminal and the computer the way a lot of CP/M machines did (Altair and IMSAI usually, H-8 and H-88 and H-89 always, while the Osborne used a memory-mapped screen like the Apple). I don't know how fast it can repaint the screen.
I don't think firing the loud solenoids on the floppy drive and waiting a second or two every time you delete something (or (p)ut it) is going to be a good user experience; the yank buffer probably needs to be in RAM to be usable. You could maybe prompt the user whether to discard the deletion if the text being deleted is over a threshold of size.
The Apple II had a couple "terminal" boards more or less like what I described that allowed it to display 80 and 132-column video. Their memory and registers would be manipulated through memory access as the 6502 didn't have dedicated IO functions. One very common was the Videx Videoterm, that used a 6845 just like the IBM CGA and MDA boards (but with a much nicer VT-100-like font). The Microsoft CP/M SoftCard emulates a SOROQ IQ-120 terminal in software.