AiGeneric V1 Full Screen Editor
Oldbitcollector (Jeff)
Posts: 8,091
Attached is a full screen input routine (40x25)
(cursor controls, color controls, home, end, enter,backspace)
This editor snippet is complete, at least as far as I plan to take it for the time being.
[noparse][[/noparse]ESC] will now exit the editor moving the screen contents into usable data.
At the moment, it is simply displayed on the screen, but could easily write it
to a text file on SD, etc.
OBC
Grab the second file for the latest copy, I can't remove the first.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
Post Edited (Oldbitcollector) : 1/29/2008 1:30:12 AM GMT
(cursor controls, color controls, home, end, enter,backspace)
This editor snippet is complete, at least as far as I plan to take it for the time being.
[noparse][[/noparse]ESC] will now exit the editor moving the screen contents into usable data.
At the moment, it is simply displayed on the screen, but could easily write it
to a text file on SD, etc.
OBC
Grab the second file for the latest copy, I can't remove the first.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
Post Edited (Oldbitcollector) : 1/29/2008 1:30:12 AM GMT
Comments
I've modified your code, [noparse]:)[/noparse] it now isn't destructive, but it's also smaller, if you just get what was under the cursor, print the cursor, do your wait for keypress, then put the old character back, then you can move cursor, clear screen, anything, without having to remove the cursor and put the new one down etc.
Glad to help.
Oh, added a PutChar and GetChar, so that I could retrieve the old colour and character, and put it back again [noparse]:)[/noparse]
Baggers.
Edit: PS, source is·in Hybrid mode, at the mo, so change the CLOCK, and PLL, and tvpins and keypins to your systems settings [noparse]:)[/noparse]
Post Edited (Baggers) : 1/28/2008 9:25:24 AM GMT
Thanks for the assist!
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
Edit: Editor code should also be compatible with the AiGeneric V2.1 package released tonight.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
Post Edited (Oldbitcollector) : 1/29/2008 4:11:23 AM GMT