Assigning macros to non-PF keys

Help
r corak
2006-10-02
2013-05-23
  • r corak
    r corak
    2006-10-02

    One can even do simple logic like this:
         "define  A-END  rexx if incommand() then nop; else sos delend"

     
  • jzombi
    jzombi
    2007-05-23

    I've also problems with some keys, i.e. control-backspace.
    I use xcurses, i have PDCurses-3.0, and THE-3.3B. When i enter the show command and press the control-backspace, the message shows me, that the code for this key is C-BKSP ("Key: C-BKSP  - unassigned"). But when i try to define it in .therc, i got an error:
    "     1 +++ define C-BKSP sos delline
    Error 41 running "/home/jzombi/.therc", line 1: Bad arithmetic conversion"
    It's very strange, because i can define it in the cmdline in xthe, but i can't do it in .therc.
    Sorry if it's a common and solved problem, i couldn't find any information about it...

     
    • Mark Hessling
      Mark Hessling
      2007-05-23

      The .threrc file is run as a Rexx macro, so it is being interpreted as subtract the variable BKSP from the variable C.
      Surround all THE commands in single or double quotes in the .therc file, or any macro file.

       
  • jzombi
    jzombi
    2007-05-24

    I see! Now it's working with the quotes, thank you!