#257 EXTRACT /LASTKEY n/ Doesn't show nth to last key

Next Release
pending-fixed
None
5
2013-07-10
2007-11-24
LesK
No

When my macro tries to discover the last few keys pressed with:
EXTRACT /LASTKEY n/
it doesn't show the nth to last key, just the last one.

Discussion

  • Mark Hessling

    Mark Hessling - 2007-12-13

    Logged In: YES
    user_id=86185
    Originator: NO

    Changing this to a feature request.

     
  • Mark Hessling

    Mark Hessling - 2007-12-13
    • assigned_to: nobody --> rexx
     
  • LesK

    LesK - 2007-12-16

    Logged In: YES
    user_id=1659105
    Originator: YES

    Ok, but it's already documented! :-)

     
  • Mark Hessling

    Mark Hessling - 2013-06-20

    Ticket moved from /p/hessling-editor/feature-requests/34/

     
  • Mark Hessling

    Mark Hessling - 2013-06-20
    • status: open --> pending-fixed
    • Group: --> v1.0 (example)
     
  • Mark Hessling

    Mark Hessling - 2013-06-20

    Moved back to Bugs.

    Now fixed.

     
  • LesK

    LesK - 2013-06-21

    Thanks!

     
  • Mark Hessling

    Mark Hessling - 2013-06-21
    • Group: v1.0 (example) --> Next Release
     
  • George R. Goffe

    George R. Goffe - 2013-07-03

    I have written a macro named "tstlastk" which accepts an optional number and defaults to 1 if no operands are given.

    When dumping i = 1 to lastkey.0, I don't see any difference in the responses. Am I not understanding what "extract /lastkey n/" does?

    Here's my output: For some odd reason I'm "say"ing the lastkey.1 item twice. The logic of this escapes me. "q rexx" returns rexx REXX-Regina_3.7(MT) 5.00 14 Oct 2012

    lastkey1=C-M
    lastkey1=C-M
    lastkey2=13
    lastkey3=13
    lastkey4=00000100

    Hit any key to continue...

    lastkey1=C-M
    lastkey1=C-M
    lastkey2=13
    lastkey3=13
    lastkey4=00000100

    Hit any key to continue...

    lastkey1=C-M
    lastkey1=C-M
    lastkey2=13
    lastkey3=13
    lastkey4=00000100

    Hit any key to continue...

    lastkey1=C-M
    lastkey1=C-M
    lastkey2=13
    lastkey3=13
    lastkey4=00000100

     
  • George R. Goffe

    George R. Goffe - 2013-07-03

    The above post was made while using 3.3RC2 but I don't see any difference in output. "q lastkey" fails with Error 0001: Invalid operand: lastkey. Entering lastkey gives "command not found"

     
  • Mark Hessling

    Mark Hessling - 2013-07-03

    LASTKEYS 1 shows the last hit you hit, so if you ran the macro from the commandline it will be ENTER. Assuming you entered:
    macro bug257.the and pressed enter, the last 8 keys will be:
    ENTER, E, H, T, ., 7, 5, 2

    Try the attached macro. Remember the last 8 keys you pressed before the messages are displayed.

     
  • Mark Hessling

    Mark Hessling - 2013-07-03

    Macro attached

     
  • George R. Goffe

    George R. Goffe - 2013-07-03

    Mark/Les,

    Here's what I get from the macro with rc4.

    C-M 13 13 00000100
    7 55 55 00000000
    5 53 53 00000000
    2 50 50 00000000
    G 103 103 00000000
    U 117 117 00000000
    B 98 98 00000000
    C-M 13 13 00000100

    With 3.3rc2 I get:

    C-M 13 13 00000100
    C-M 13 13 00000100
    C-M 13 13 00000100
    C-M 13 13 00000100
    C-M 13 13 00000100
    C-M 13 13 00000100
    C-M 13 13 00000100
    C-M 13 13 00000100

     
  • LesK

    LesK - 2013-07-10

    George: Q LASTKEY is inappropriate, since the answer will probably
    always be ENTER, F-n etc.

    Try the attached, which Mark sent me.

    However, the 'n' limit should be documented. Looks like it's 8 and if
    you try to EXTRACT beyond that the 8th one just gets replicated.

     

Log in to post a comment.