home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / progmisc / tde221.zip / CFGFILE.H < prev    next >
Text File  |  1993-04-01  |  19KB  |  509 lines

  1.  
  2.  
  3. /*
  4.  * Group the list of available keys alphabetically.
  5.  */
  6. CONFIG_DEFS valid_keys[AVAIL_KEYS] = {
  7. /*  available key      index into file   */
  8.    { "a+\'",                     40 },
  9.    { "a+-",                     130 },
  10.    { "a+0",                     129 },
  11.    { "a+1",                     120 },
  12.    { "a+2",                     121 },
  13.    { "a+3",                     122 },
  14.    { "a+4",                     123 },
  15.    { "a+5",                     124 },
  16.    { "a+6",                     125 },
  17.    { "a+7",                     126 },
  18.    { "a+8",                     127 },
  19.    { "a+9",                     128 },
  20.    { "a+;",                      39 },
  21.    { "a+<",                      51 },
  22.    { "a+=",                     131 },
  23.    { "a+>",                      52 },
  24.    { "a+?",                      53 },
  25.    { "a+[",                      26 },
  26.    { "a+]",                      27 },
  27.    { "a+a",                      30 },
  28.    { "a+b",                      48 },
  29.    { "a+backspace",              14 },
  30.    { "a+c",                      46 },
  31.    { "a+d",                      32 },
  32.    { "a+e",                      18 },
  33.    { "a+enter",                  28 },
  34.    { "a+esc",                     1 },
  35.    { "a+f",                      33 },
  36.    { "a+f1",                    104 },
  37.    { "a+f10",                   113 },
  38.    { "a+f11",                   139 },
  39.    { "a+f12",                   140 },
  40.    { "a+f2",                    105 },
  41.    { "a+f3",                    106 },
  42.    { "a+f4",                    107 },
  43.    { "a+f5",                    108 },
  44.    { "a+f6",                    109 },
  45.    { "a+f7",                    110 },
  46.    { "a+f8",                    111 },
  47.    { "a+f9",                    112 },
  48.    { "a+g",                      34 },
  49.    { "a+grey/",                 164 },
  50.    { "a+greydel",               163 },
  51.    { "a+greydown",              160 },
  52.    { "a+greyend",               159 },
  53.    { "a+greyenter",             166 },
  54.    { "a+greyhome",              151 },
  55.    { "a+greyins",               162 },
  56.    { "a+greyleft",              155 },
  57.    { "a+greypgdn",              161 },
  58.    { "a+greypgup",              153 },
  59.    { "a+greyright",             157 },
  60.    { "a+greyup",                152 },
  61.    { "a+h",                      35 },
  62.    { "a+i",                      23 },
  63.    { "a+j",                      36 },
  64.    { "a+k",                      37 },
  65.    { "a+l",                      38 },
  66.    { "a+m",                      50 },
  67.    { "a+n",                      49 },
  68.    { "a+o",                      24 },
  69.    { "a+p",                      25 },
  70.    { "a+q",                      16 },
  71.    { "a+r",                      19 },
  72.    { "a+s",                      31 },
  73.    { "a+t",                      20 },
  74.    { "a+tab",                   165 },
  75.    { "a+u",                      22 },
  76.    { "a+v",                      47 },
  77.    { "a+w",                      17 },
  78.    { "a+x",                      45 },
  79.    { "a+y",                      21 },
  80.    { "a+z",                      44 },
  81.    { "a+~",                      41 },
  82.    { "backspace",                 9 },
  83.    { "c+@",                     174 },
  84.    { "c+[",                     201 },
  85.    { "c+\\",                    202 },
  86.    { "c+]",                     203 },
  87.    { "c+^",                     204 },
  88.    { "c+_",                     205 },
  89.    { "c+a",                     175 },
  90.    { "c+b",                     176 },
  91.    { "c+backspace",              11 },
  92.    { "c+c",                     177 },
  93.    { "c+center",                143 },
  94.    { "c+d",                     178 },
  95.    { "c+del",                   147 },
  96.    { "c+down",                  145 },
  97.    { "c+e",                     179 },
  98.    { "c+end",                   117 },
  99.    { "c+enter",                   8 },
  100.    { "c+esc",                     4 },
  101.    { "c+f",                     180 },
  102.    { "c+f1",                     94 },
  103.    { "c+f10",                   103 },
  104.    { "c+f11",                   137 },
  105.    { "c+f12",                   138 },
  106.    { "c+f2",                     95 },
  107.    { "c+f3",                     96 },
  108.    { "c+f4",                     97 },
  109.    { "c+f5",                     98 },
  110.    { "c+f6",                     99 },
  111.    { "c+f7",                    100 },
  112.    { "c+f8",                    101 },
  113.    { "c+f9",                    102 },
  114.    { "c+g",                     181 },
  115.    { "c+grey*",                 150 },
  116.    { "c+grey+",                 144 },
  117.    { "c+grey-",                 142 },
  118.    { "c+grey/",                 149 },
  119.    { "c+greyenter",              43 },
  120.    { "c+h",                     182 },
  121.    { "c+home",                  119 },
  122.    { "c+i",                     183 },
  123.    { "c+ins",                   146 },
  124.    { "c+j",                     184 },
  125.    { "c+k",                     185 },
  126.    { "c+l",                     186 },
  127.    { "c+left",                  115 },
  128.    { "c+m",                     187 },
  129.    { "c+n",                     188 },
  130.    { "c+o",                     189 },
  131.    { "c+p",                     190 },
  132.    { "c+pgdn",                  118 },
  133.    { "c+pgup",                  132 },
  134.    { "c+q",                     191 },
  135.    { "c+r",                     192 },
  136.    { "c+right",                 116 },
  137.    { "c+s",                     193 },
  138.    { "c+t",                     194 },
  139.    { "c+tab",                   148 },
  140.    { "c+u",                     195 },
  141.    { "c+up",                    141 },
  142.    { "c+v",                     196 },
  143.    { "c+w",                     197 },
  144.    { "c+x",                     198 },
  145.    { "c+y",                     199 },
  146.    { "c+z",                     200 },
  147.    { "center",                   76 },
  148.    { "del",                      83 },
  149.    { "down",                     80 },
  150.    { "end",                      79 },
  151.    { "enter",                     6 },
  152.    { "esc",                       2 },
  153.    { "f1",                       59 },
  154.    { "f10",                      68 },
  155.    { "f11",                     133 },
  156.    { "f12",                     134 },
  157.    { "f2",                       60 },
  158.    { "f3",                       61 },
  159.    { "f4",                       62 },
  160.    { "f5",                       63 },
  161.    { "f6",                       64 },
  162.    { "f7",                       65 },
  163.    { "f8",                       66 },
  164.    { "f9",                       67 },
  165.    { "grey+",                   168 },
  166.    { "grey-",                   167 },
  167.    { "greyenter",                29 },
  168.    { "home",                     71 },
  169.    { "ins",                      82 },
  170.    { "left",                     75 },
  171.    { "pgdn",                     81 },
  172.    { "pgup",                     73 },
  173.    { "right",                    77 },
  174.    { "s+a+\'",                  242 },
  175.    { "s+a+-",                   216 },
  176.    { "s+a+0",                   215 },
  177.    { "s+a+1",                   206 },
  178.    { "s+a+2",                   207 },
  179.    { "s+a+3",                   208 },
  180.    { "s+a+4",                   209 },
  181.    { "s+a+5",                   210 },
  182.    { "s+a+6",                   211 },
  183.    { "s+a+7",                   212 },
  184.    { "s+a+8",                   213 },
  185.    { "s+a+9",                   214 },
  186.    { "s+a+;",                   241 },
  187.    { "s+a+<",                   253 },
  188.    { "s+a+=",                   217 },
  189.    { "s+a+>",                   254 },
  190.    { "s+a+?",                   255 },
  191.    { "s+a+[",                   228 },
  192.    { "s+a+]",                   229 },
  193.    { "s+a+a",                   232 },
  194.    { "s+a+b",                   250 },
  195.    { "s+a+c",                   248 },
  196.    { "s+a+d",                   234 },
  197.    { "s+a+e",                   220 },
  198.    { "s+a+f",                   235 },
  199.    { "s+a+g",                   236 },
  200.    { "s+a+h",                   237 },
  201.    { "s+a+i",                   225 },
  202.    { "s+a+j",                   238 },
  203.    { "s+a+k",                   239 },
  204.    { "s+a+l",                   240 },
  205.    { "s+a+m",                   252 },
  206.    { "s+a+n",                   251 },
  207.    { "s+a+o",                   226 },
  208.    { "s+a+p",                   227 },
  209.    { "s+a+q",                   218 },
  210.    { "s+a+r",                   221 },
  211.    { "s+a+s",                   233 },
  212.    { "s+a+t",                   222 },
  213.    { "s+a+u",                   224 },
  214.    { "s+a+v",                   249 },
  215.    { "s+a+w",                   219 },
  216.    { "s+a+x",                   247 },
  217.    { "s+a+y",                   223 },
  218.    { "s+a+z",                   246 },
  219.    { "s+a+~",                   243 },
  220.    { "s+backspace",              10 },
  221.    { "s+c+left",                170 },
  222.    { "s+c+right",               171 },
  223.    { "s+enter",                   7 },
  224.    { "s+esc",                     3 },
  225.    { "s+f1",                     84 },
  226.    { "s+f10",                    93 },
  227.    { "s+f11",                   135 },
  228.    { "s+f12",                   136 },
  229.    { "s+f2",                     85 },
  230.    { "s+f3",                     86 },
  231.    { "s+f4",                     87 },
  232.    { "s+f5",                     88 },
  233.    { "s+f6",                     89 },
  234.    { "s+f7",                     90 },
  235.    { "s+f8",                     91 },
  236.    { "s+f9",                     92 },
  237.    { "s+greyenter",              42 },
  238.    { "s+tab",                    15 },
  239.    { "tab",                      12 },
  240.    { "up",                       72 }
  241. };
  242.  
  243.  
  244. /*
  245.  * sorted alphabetic list of functions that keys may be assigned to.
  246.  *  add 1 to NUM_FUNC so users may use either Macro or Playback to
  247.  *  define macros.  Macro and Playback are both assigned to 128.
  248.  */
  249.  
  250. CONFIG_DEFS valid_func[NUM_FUNC+1] = {
  251.    { "AbortCommand",                 63 },
  252.    { "AddLine",                      59 },
  253.    { "BackSpace",                    53 },
  254.    { "BackTab",                      51 },
  255.    { "BegNextLine",                   4 },
  256.    { "BegOfLine",                    20 },
  257.    { "BlockCompressTabs",            91 },
  258.    { "BlockEmailReply",              98 },
  259.    { "BlockExpandTabs",              90 },
  260.    { "BlockFixUUE",                  97 },
  261.    { "BlockIndentTabs",              92 },
  262.    { "BlockLowerCase",               95 },
  263.    { "BlockRot13",                   96 },
  264.    { "BlockStripHiBit",              99 },
  265.    { "BlockToFile",                  88 },
  266.    { "BlockTrimTrailing",            93 },
  267.    { "BlockUpperCase",               94 },
  268.    { "BotOfScreen",                  17 },
  269.    { "CenterJustify",                49 },
  270.    { "CenterLine",                   23 },
  271.    { "CenterWindow",                 22 },
  272.    { "CharLeft",                      8 },
  273.    { "CharRight",                     7 },
  274.    { "ClearAllMacros",              129 },
  275.    { "CopyBlock",                    82 },
  276.    { "DateTimeStamp",               101 },
  277.    { "DefineDiff",                   74 },
  278.    { "DefineSearchAndSeize",        109 },
  279.    { "DelEndOfLine",                 57 },
  280.    { "DeleteBlock",                  86 },
  281.    { "DeleteChar",                   54 },
  282.    { "DeleteLine",                   56 },
  283.    { "DirList",                     103 },
  284.    { "DuplicateLine",                62 },
  285.    { "EditFile",                    102 },
  286.    { "EditNextFile",                108 },
  287.    { "EndOfFile",                    15 },
  288.    { "EndOfLine",                    19 },
  289.    { "File",                        104 },
  290.    { "FillBlock",                    80 },
  291.    { "FindBackward",                 68 },
  292.    { "FindForward",                  67 },
  293.    { "FormatParagraph",              45 },
  294.    { "FormatText",                   46 },
  295.    { "GotoMark1",                   122 },
  296.    { "GotoMark2",                   123 },
  297.    { "GotoMark3",                   124 },
  298.    { "Help",                          1 },
  299.    { "HorizontalScreenLeft",         25 },
  300.    { "HorizontalScreenRight",        24 },
  301.    { "JoinLine",                     61 },
  302.    { "JumpToLine",                   21 },
  303.    { "KopyBlock",                    83 },
  304.    { "LeftJustify",                  47 },
  305.    { "LineDown",                      5 },
  306.    { "LineUp",                        6 },
  307.    { "LoadMacro",                   128 },
  308.    { "Macro",                       126 },
  309.    { "MarkBox",                      76 },
  310.    { "MarkLine",                     77 },
  311.    { "MarkStream",                   78 },
  312.    { "MoveBlock",                    84 },
  313.    { "NextDirtyLine",               132 },
  314.    { "NextHiddenWindow",            118 },
  315.    { "NextLine",                      3 },
  316.    { "NextWindow",                  115 },
  317.    { "Null",                          0 },
  318.    { "NumberBlock",                  81 },
  319.    { "OverlayBlock",                 85 },
  320.    { "PanDn",                        29 },
  321.    { "PanLeft",                      10 },
  322.    { "PanRight",                      9 },
  323.    { "PanUp",                        28 },
  324.    { "ParenBalance",                 52 },
  325.    { "Pause",                       130 },
  326.    { "PlayBack",                    126 },
  327.    { "PrevDirtyLine",               133 },
  328.    { "PreviousWindow",              116 },
  329.    { "PrintBlock",                   89 },
  330.    { "Quit",                        131 },
  331.    { "RecordMacro",                 125 },
  332.    { "RedrawScreen",                111 },
  333.    { "RepeatDiff",                   75 },
  334.    { "RepeatFindBackward1",          71 },
  335.    { "RepeatFindBackward2",          72 },
  336.    { "RepeatFindForward1",           69 },
  337.    { "RepeatFindForward2",           70 },
  338.    { "RepeatSearchAndSeize",        110 },
  339.    { "ReplaceString",                73 },
  340.    { "RightJustify",                 48 },
  341.    { "Rturn",                         2 },
  342.    { "Save",                        105 },
  343.    { "SaveAs",                      106 },
  344.    { "SaveMacro",                   127 },
  345.    { "ScreenDown",                   13 },
  346.    { "ScreenUp",                     14 },
  347.    { "ScrollDnLine",                 26 },
  348.    { "ScrollUpLine",                 27 },
  349.    { "SetFileAttributes",           107 },
  350.    { "SetLeftMargin",                42 },
  351.    { "SetMark1",                    119 },
  352.    { "SetMark2",                    120 },
  353.    { "SetMark3",                    121 },
  354.    { "SetParagraphMargin",           44 },
  355.    { "SetRightMargin",               43 },
  356.    { "SetTabs",                      41 },
  357.    { "SizeWindow",                  112 },
  358.    { "SortBoxBlock",                100 },
  359.    { "SplitHorizontal",             113 },
  360.    { "SplitLine",                    60 },
  361.    { "SplitVertical",               114 },
  362.    { "StreamDeleteChar",             55 },
  363.    { "SwapBlock",                    87 },
  364.    { "Tab",                          50 },
  365.    { "ToggleCRLF",                   34 },
  366.    { "ToggleEol",                    37 },
  367.    { "ToggleIndent",                 32 },
  368.    { "ToggleOverWrite",              30 },
  369.    { "ToggleRuler",                  39 },
  370.    { "ToggleSearchCase",             66 },
  371.    { "ToggleSmartTabs",              31 },
  372.    { "ToggleSync",                   38 },
  373.    { "ToggleTabInflate",             40 },
  374.    { "ToggleTrailing",               35 },
  375.    { "ToggleWordWrap",               33 },
  376.    { "ToggleZ",                      36 },
  377.    { "TopOfFile",                    16 },
  378.    { "TopOfScreen",                  18 },
  379.    { "TwoCharKey",                  134 },
  380.    { "UndoDelete",                   65 },
  381.    { "UndoLine",                     64 },
  382.    { "UnMarkBlock",                  79 },
  383.    { "WordDelete",                   58 },
  384.    { "WordLeft",                     12 },
  385.    { "WordRight",                    11 },
  386.    { "ZoomWindow",                  117 }
  387. };
  388.  
  389.  
  390. /*
  391.  * list of color fields sorted alphabetically
  392.  */
  393.  
  394. CONFIG_DEFS valid_colors[NUM_COLORS*2] = {
  395.    { "co80_Blocks",                   4 },
  396.    { "co80_CurLine",                  9 },
  397.    { "co80_DirtyLine",                2 },
  398.    { "co80_EndOfFile",                8 },
  399.    { "co80_FileHeader",               0 },
  400.    { "co80_HelpScreen",               6 },
  401.    { "co80_HilitedFile",             12 },
  402.    { "co80_MessageLine",              5 },
  403.    { "co80_ModeLine",                 3 },
  404.    { "co80_Overscan",                13 },
  405.    { "co80_Ruler",                   10 },
  406.    { "co80_RulerPointer",            11 },
  407.    { "co80_Text",                     1 },
  408.    { "co80_Wrapped",                  7 },
  409.    { "mono_Blocks",                   4 },
  410.    { "mono_CurLine",                  9 },
  411.    { "mono_DirtyLine",                2 },
  412.    { "mono_EndOfFile",                8 },
  413.    { "mono_FileHeader",               0 },
  414.    { "mono_HelpScreen",               6 },
  415.    { "mono_HilitedFile",             12 },
  416.    { "mono_MessageLine",              5 },
  417.    { "mono_ModeLine",                 3 },
  418.    { "mono_Overscan",                13 },
  419.    { "mono_Ruler",                   10 },
  420.    { "mono_RulerPointer",            11 },
  421.    { "mono_Text",                     1 },
  422.    { "mono_Wrapped",                  7 }
  423. };
  424.  
  425.  
  426. /*
  427.  * list of editor modes sorted alphabetically
  428.  */
  429.  
  430. CONFIG_DEFS valid_modes[NUM_MODES] = {
  431.    { "Backups",             Backup      },
  432.    { "CaseIgnore",          Ignore      },
  433.    { "CaseMatch",           Match       },
  434.    { "ControlZ",            Write_Z     },
  435.    { "CursorStyle",         Size        },
  436.    { "DateStyle",           Date        },
  437.    { "DisplayEndOfLine",    Eol         },
  438.    { "EndOfLineStyle",      Crlf        },
  439.    { "IndentMode",          Ind         },
  440.    { "InflateTabs",         InflateTabs },
  441.    { "InitialCaseMode",     Initcase    },
  442.    { "InsertMode",          Ins         },
  443.    { "JustifyRightMargin",  JustRM      },
  444.    { "LeftMargin",          Left        },
  445.    { "LTabSize",            LTAB        },
  446.    { "ParagraphMargin",     Para        },
  447.    { "PTabSize",            PTAB        },
  448.    { "RightMargin",         Right       },
  449.    { "Ruler",               Ruler       },
  450.    { "SmartTabMode",        Smart       },
  451.    { "TimeStyle",           Time        },
  452.    { "TrimTrailingBlanks",  Trim        },
  453.    { "WordWrapMode",        WW          }
  454. };
  455.  
  456.  
  457.  
  458. CONFIG_DEFS off_on[2] = {
  459.    { "Off",   0 },
  460.    { "On",    1 }
  461. };
  462.  
  463.  
  464. CONFIG_DEFS valid_z[2] = {
  465.    { "No_Z",     1 },
  466.    { "Write_Z",  0 }
  467. };
  468.  
  469.  
  470. CONFIG_DEFS valid_cursor[2] = {
  471.    { "Large",   1 },
  472.    { "Small",   0 }
  473. };
  474.  
  475.  
  476. CONFIG_DEFS valid_crlf[2] = {
  477.    { "CRLF",   1 },
  478.    { "LF",     2 }
  479. };
  480.  
  481.  
  482. CONFIG_DEFS valid_wraps[3] = {
  483.    { "DynamicWrap",   2 },
  484.    { "FixedWrap",     1 },
  485.    { "Off",           0 }
  486. };
  487.  
  488.  
  489. CONFIG_DEFS valid_dates[6] = {
  490.    { "DD_MM_YY",     1 },
  491.    { "DD_MM_YYYY",   4 },
  492.    { "MM_DD_YY",     0 },
  493.    { "MM_DD_YYYY",   3 },
  494.    { "YY_MM_DD",     2 },
  495.    { "YYYY_MM_DD",   5 }
  496. };
  497.  
  498.  
  499. CONFIG_DEFS valid_times[2] = {
  500.    { "12_Hour",     0 },
  501.    { "24_Hour",     1 }
  502. };
  503.  
  504.  
  505. CONFIG_DEFS init_case_modes[2] = {
  506.    { "IGNORE",  1 },
  507.    { "MATCH",   2 }
  508. };
  509.