copy/v86

feat: Download Text Mode buffer

Open

#1181 aperta il 10 nov 2024

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Rust (1353 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (19.458 star)
Metriche merge PR
 (Merge medio 8g 2h) (12 PR mergiate in 30 g)

Descrizione

So, I am making my own mini textual bootloader OS. Problem is, I'm making a sort of Command Prompt to test my assembly skills. How it works, is when built, it launches a https://copy.sh/v86/?profile=custom&fda.url=... type of link. (I read the source, fda.url is the URL for the floppy image for which I use a Base64 Data URL)

I'm currently testing what ASCII value do the keys I input print out. For normal letters or numbers, this is self-explanatory. However, for something like the Enter key, Meta (⊞ for Windows and ⌘ for Mac) key, Ctrl key, Escape, so on, this isn't so explainable. So, I tested the Enter key first. It moved my cursor a bit, which is weird, and probably some compilation-to-WASM bug, granted, but I wanted to see what ASCII value does Enter give off. Turns out, I won't know until I can download the textual output the emulator has, including the special characters that seem to move the cursor around.

So that's why I'm requesting a way to download the buffer from Text Mode as a .TXT (or a .BIN (possibly)).

It would be much more useful than just for devs like me. What if someone painted amazing ASCII art in their emulator, only for a bummer to appear as you can only screenshot for now? Sure, saving as an image is more convenient, but at least add a dropdown to either save as an image or a text file.

And of course, make it only enabled only when Text Mode, Graphics can't be downloaded as text (unless the and/or chars with a bit of ANSI colors)

Thanks for reading, I hope you all like my suggestion to further improve your awesome WASM emulator, and I really like the whole idea of compiling binaries to WASM.

edit: found the char for enter key, it's just \r. the reason carriage return moves is still unknown to me tho.

Guida contributor