One can even do simple logic like this:
"define A-END rexx if incommand() then nop; else sos delend"
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...
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.
I see! Now it's working with the quotes, thank you!