Shop OBEX P1 Docs P2 Docs Learn Events
AiGeneric V1 Full Screen Editor — Parallax Forums

AiGeneric V1 Full Screen Editor

Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
edited 2008-01-29 01:30 in Propeller 1
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


Comments

  • BaggersBaggers Posts: 3,019
    edited 2008-01-28 09:18
    Hi OBC,

    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
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-28 15:37
    Awesome! I'll move a copy of the new routines into the other AiGeneric as well.

    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!)

  • BaggersBaggers Posts: 3,019
    edited 2008-01-28 15:40
    np matey [noparse]:)[/noparse]
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-01-29 01:30
    Finished the routine... Grab second file in the top of this thread.


    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

Sign In or Register to comment.