pretty-8080-assembler icon indicating copy to clipboard operation
pretty-8080-assembler copied to clipboard

Middle-click copy doesn't work and other problems with copy-paste

Open Selorax opened this issue 2 years ago • 3 comments

I have encountered two problems with the assembler, first when I select the code and click with middle mouse button in other app, or in the same browser, or different tab, it's not pasted (platform: Firefox, X11).

Second, not sure if I it deserves a separate bugreport, but I'd rather prefer to be able to copy the binary output of the assembler instead of re-typing it. Downloading the tape file, cutting header and trailer and hexdumping it takes longer.

Sometimes I prefer to enter short programs with M command instead of loading a tape.

Selorax avatar Jan 09 '23 15:01 Selorax

Middle-click paste is a very X11 specific thing. I don't know how to target a web-based browser to a specific host OS, if that's even possible.

Not sure what do you mean by the second request. Currently you have several available options. When you click BIN button at the bottom, you download a binary image of your program. There is no need to type anything.

Perhaps describe what you're trying to do in better details and I'll try to help you.

svofski avatar Apr 03 '23 12:04 svofski

X11 copy and paste works well in browser (firefox 100+) normally, but not in pretty 8080 assembler.

Second request was not about the binary file, it was about the hexdump with offset output on the left side of the window. I wanted to get a binary + assembler listing for retyping in monitor on the real computer.

Selorax avatar May 06 '23 13:05 Selorax

I can't test middle-click paste, but it seems to be a long lasting issue in Ace unfortunately https://github.com/ajaxorg/ace/issues/175

BIN will download binary, raw and simple. You can invoke hexdump or od on it and get it formatted the way you need.

svofski avatar May 06 '23 14:05 svofski