I'm trying to track down a problem I'm having between LifeViewer and an app I'm working on.
On a webpage, I try to copy a pattern that's being displayed by using "ctrl-c". I then get that string and attempt to paste it into by app. There's nothing but an empty string. This is an iOS app, so I've looked at various encodings (UTF8, UTF16, ASCII, ancient MacOS), and none seem to matter.
If I paste the string into a TextEdit document, it appears just fine. But pasting into an XCode (Apple's development IDE), or a Terminal window, I see the same behavior-- no string. So it's not just my ignorance of pasting strings. Somethin' ain't right, somewheres.
What is being placed in the pasteboard/clipboard? I'm using Safari on a Mac to display the string I want to copy. The strings in the "SELECT ALL / SHOW IN VIEWER" box work just fine, so I suspect it's something to do with the way JavaScript does the copy.
LifeViewer cutting and pasting issue
Re: LifeViewer cutting and pasting issue
This would indicate that LifeViewer is successfully copying to the clipboard.
LifeViewer creates the RLE in a <textarea> element which it then asks the browser to "select all" and then "copy".
If the pattern is very large then it creates multiple <textarea> elements and you'll see a progress bar (bottom left) as it copies and then be promted to "press Enter to complete copy".
LifeViewer https://lazyslug.com/lifeviewer