Jonathan 'theJPster' Pallant
Jonathan 'theJPster' Pallant
Stablised today in 1.58
Really interesting idea!
MS-DOS offered a bunch of virtual files you could open: * COM1, COM2, ... * AUX * LPT1, LPT2... * NUL * etc Linux/UNIX has virtual devices in /dev which...
An alternative approach is to provide a BIOS-level API (enumerating fixed disks, read/write sectors, etc) and moving file read/write into a DOS. This could be loaded into RAM or stored...
Nice! I wonder though if we can make this optional? The uart fifo is only 16 bytes and some of the fancier demos (like the flames) can't afford to wait...
Now I'm also wondering if I should scrap the weird escape codes I invented and make the framebuffer handle standard ANSI / VT100 codes. Then your serial terminal would look...
> escape sequences Cool. I'll look for the PR on vga-framebuffer and/or console-traits. Would be nice to make a crate that Phil Opperman could use on his OS blog. >...
Oh, it's one of mine. I pulled it out of vga-framebuffer, which was getting a bit big and scary. Yeah, it doesn't do multi-byte. Sorry.
I've started full ANSI support in https://github.com/thejpster/console-traits/pull/1. Updates / fixes / more tests welcome!
Also, if you want to rebase this, I'll merge it as-is, then think about adding the opt-out.