Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: thydowulays on February 03, 2012, 04:06:11 pm

Title: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: thydowulays on February 03, 2012, 04:06:11 pm
Well, idk if this is super hard or not, but I just had an idea.
I saw this picture of the TI89 on Wikipedia: http://en.wikipedia.org/wiki/File:TI-89.jpg
And I noticed the Cut, Copy, Paste things above 2ND [UP] and ESC.

I was wondering, since there is no ALPHA keys above 2ND, MODE, and DEL, that maybe this could be created?

I have no idea how to do this, and this is just an idea, but I bet someone from this community could know how to do it.

I mean, maybe for storing the data, you could just create an AppVar called CLIPTEMP and store stuff in there. Maybe it could be used with zStart, too (like how Omnicalc is)

Again, this is just an idea, and it would be AMAZING if it could happen :)
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: ben_g on February 03, 2012, 06:37:40 pm
I think it would be very hard to do becouse you would need a way to select too. The OS can't handle selections, so you'd have to program that in a routine which can work together with the OS well.
But it would be very handy indeed.
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: shmibs on February 03, 2012, 10:23:23 pm
an app could manage it with keyhooks, i think. if so, maybe thepenguin could stick it in zstart? i doubt there's enough room to do it and keep the page size down, though, what with all he has in there already.
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: Deep Toaster on February 03, 2012, 10:43:36 pm
I actually started on that a few months ago, but went on to other projects because I got bored. Something like this really needs to be made at some point though.
I mean, maybe for storing the data, you could just create an AppVar called CLIPTEMP and store stuff in there.
That won't work because when anything's being edited (homescreen, program editor, etc.), the edit buffer is open. (Basically, all available RAM is temporarily put into the current variable so you can't create anything else.)

But you could store the copied data in a RAM area like appBackUpScreen (which I don't think is used during editing). However, that would limit copy data to 766 bytes (768 minus two for size; shouldn't be a problem), and if any other active hooks use it, there would be conflicts.
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: DJ Omnimaga on February 04, 2012, 02:25:09 am
Omnicalc used to have a Clipboard feature back in version 1.00, but it was so buggy that the authors decided to remove it completely. (random 50-60 KB Y1,Y2,r1,r2 files appeared in the memory menu and the Y= editor pretty much showed The Matrix movie before greeting you with a BSOD then a RAM Clear).

It would definitively be doable. Doing it stable, however, might be another story.
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: thydowulays on February 04, 2012, 02:28:03 am
Yeah I could never make something like this. Off topic: Deep Thought, are you planning on resuming progress on XDE anytime soon? Because I would love to use it for my projects when it's finished
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: thepenguin77 on February 04, 2012, 09:25:25 am
zStart actually lets you copy and paste stuff in the program editor. Press [ON] + [ +] to copy and [ON] + [Enter] to paste. It only copies the current line, but it really helps if you need to copy a boat load of stuff.

The copy data is stored on the extra ram page so this only works on non-83+BE calculators.

(Also, [ON] + [^] is effectively an undo button)
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: Xeda112358 on February 04, 2012, 09:33:35 am
Hmm, I wonder if there could be a way to copy multiple lines...? You would need to find a way to show what was selected, though, probably :/
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: jacobly on February 04, 2012, 10:38:48 am
Hmm, I wonder if there could be a way to copy multiple lines...? You would need to find a way to show what was selected, though, probably :/

You could do something similar to what emacs does (yank and kill). Then you could copy multiple lines without the need for selection. :D
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: thydowulays on February 05, 2012, 01:23:05 pm
thepenguin77, does this only work with zStart 1.3? Because I have 1.2 and it doesn't work.
Title: Re: [IDEA] Clipboard - Easy copy/paste just like the TI89 for z80 calcs
Post by: DJ Omnimaga on February 05, 2012, 02:28:31 pm
zStart actually lets you copy and paste stuff in the program editor. Press [ON] + [ +] to copy and [ON] + [Enter] to paste. It only copies the current line, but it really helps if you need to copy a boat load of stuff.

The copy data is stored on the extra ram page so this only works on non-83+BE calculators.

(Also, [ON] + [^] is effectively an undo button)
Wow I didn't know that. Does it also work from the home screen and Y= menu?