NOTE NOTE NOTE:::::
This utility is included as part of the CRISP package with some
minor modifications so that CRISP can support this utility. If you
use it you will need to set the BTERM environment variable to
"RDE". No other substantive changes have been made.
I make no claim on this software.

Paul Fox 11 April 1991
================================
From:

/*
   Written by Richard Evans.
 
   Topexpress Ltd.
   Poseidon House, Castle Park  Fax       : (+44) 223 315057
   Cambridge, CB3 0RD, UK       E-Mail    : rde@uk.co.topexp (UK)
                                          : rde@topexpress.co.uk
*/


This is the code for my shelltool replacement which I have called rdetool (for
the want of a better name!).  It has the same spec as shelltool except that the
-B boldstyle command line option is not recognised (I couldn't be bothered to
work out how to implement it).  There is an additional -S switch which starts
the tool with scrolling enabled (as in cmdtool); it doesn't use the command
name to decide.

This code lets one map the entire keyboard.

I have included some example code on how to map different keys; this code is 
selected by #ifdef FN lines and I have set FN in the code.

To compile, use the following command:

cc -O -o rdetool -I/usr/openwin/include rdetool.c -lxview -lolgx -lX11 -L/usr/openwin/lib

Please pass it on to anyone else who is interested.  I would be grateful if the
author's name and company could be retained in any copies you send out, and
that you ask others to do the same.

If you have any problems, let me know.

TIPS:

1) Do the following to have the ALT key working:
       		
              xmodmap -e 'add mod2 = Alt_L'

2) If you would like to have the default setting of a particular keystroke, then 
   define it to NULL.

3) Would be good if this can read the key assignment from a file too.

NO ATTEMPT HAS BEEN MADE TO MAP THE KEYSTROKES TO ACTUAL ESCAPE SEQUENCES. ONE CAN
MAP IT TO ANYTHING HE/SHE WANTS. 
