home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 318_01 / red1.h < prev    next >
Text File  |  1990-06-18  |  2KB  |  81 lines

  1. /*
  2.     RED special key definitions and compiler options.
  3.  
  4.     Source:  red1.h
  5.     Version: February 15, 1985; January 18, 1990.
  6.  
  7.     Written by
  8.     
  9.         Edward K. Ream
  10.         166 N. Prospect
  11.         Madison WI 53705
  12.         (608) 257-0802
  13.  
  14.  
  15.     PUBLIC DOMAIN SOFTWARE
  16.  
  17.     This software is in the public domain.
  18.  
  19.     See red.h for a disclaimer of warranties and other information.
  20. */
  21.  
  22. /*
  23.     Define how modes change initially.
  24. */
  25. #define DEFIMODE EDITMODE    /* Initial mode & mode after commands.    */
  26. #define DEF1MODE INSMODE    /* Mode after UP_INS and DOWN_INS.    */
  27. #define DEF2MODE EDITMODE    /* Mode after UP and DOWN.        */    
  28.  
  29. /*
  30.     Define which keys are used for special edit functions.
  31. */
  32. #define AGAIN 1            /* control a (again)    */
  33. #define ESCAPE 27        /* escape sequence    */
  34.  
  35. #define UP_INS 10        /* line feed        */
  36. #define DOWN_INS 13        /* carriage return    */
  37.  
  38. #define UP 21            /* control u (up)    */
  39. #define DOWN 4            /* control d (down)    */
  40. #define LEFT 12         /* control l (left)    */
  41. #define RIGHT 18        /* control r (right)    */
  42.  
  43. #define WORD_B 2        /* control b (back)    */
  44. #define WORD_F 6        /* control f (forward)    */
  45.  
  46. #define DEL1 8             /* control h (BS)    */
  47. #define DEL2 127        /* del            */
  48. #define ZAP 26            /* control z (zap)    */
  49. #define UNDO 24            /* control x (undo)    */
  50.  
  51. #define SPLIT 19        /* control s (split)    */
  52. #define JOIN 7            /* control g (glue)    */
  53. #define VERBATIM 22        /* control v (verbatim)    */
  54.  
  55. #define INS 14            /* control n (iNsert)    */
  56. #define CMND 3            /* control c (command)    */
  57. #define EDIT 5            /* control e (edit)    */
  58. #define OVER 20            /* control t (Overtype)    */
  59.  
  60. #define SCRN_DN 15        /* control o        */
  61. #define SCRN_UP 23        /* control w        */
  62. #define PAGE_UP 17        /* control q        */
  63. #define PAGE_DN 16        /* control p        */
  64.  
  65. /*
  66.     Special key codes.  The values of these codes do not matter
  67.     as long as they do not conflict with the values above.
  68. */
  69. #define HOME_KEY 200
  70. #define END_KEY  201
  71.  
  72. /*
  73.     Define length and width of screen and printer.
  74. */
  75. #define SCRNW 80
  76. #define SCRNW1 79
  77. #define SCRNL 25
  78. #define SCRNL1 24
  79. #define SCRNL2 23
  80. #define LISTW 132
  81.