Skip to content

feat: Download Text Mode buffer #1181

Open
@RixInGithub

Description

@RixInGithub

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions