tdecfg a configuration utility for tde, version 4.0 June 4, 1994 Frank Davis Usage: If you would like to customize tde to suit your tastes, you may use this program to change the colors, key definitions, default modes, help screen, and permanent macros. At the command line type: tdecfg Option 1. Change Colors Function Keys: F2 = Load default colors This function changes the colors back to the original color scheme used by the distribution version of tde. F3 = Quit Abandons any changes made in the color scheme. F10 = Write colors to tde.exe Stores the new color scheme in the tde executable file. tde will use the new color scheme each time a file is edited. ESC = Quit Option 2. Redefine keys Function Keys: F3 = Quit Abandons any changes made in the key definition list. F5 = Change Function Brings up a window of available functions. Currently, 230 keys are recognized as function keys by tde. There are no restrictions on what function you may assign or reassign to a key. You may assign a key to the null function, seen as "* * *". A key assigned to the null function no longer performs any editor function. Press to reassign the hilited key to the hilited function. Press to quit the function, no changes are made. An asterisk is placed beside all keys that have been redefined. Note: See the list of available functions with definitions at end of tde.doc. F7 = Print to file Print the current key assignments to a file. F8 = Print to printer Print the current key assignments to the printer. F10 = Write Changes When you press this key, all function key assignments are written to the tde executable file. The changes are permanent until you redefine the keys. When you redefine the keys, you should also change the help screen to show what functions are assigned to what keys. ESC = Quit No changes are written to the tde executable file. Option 3. Install new help screen Function keys: none This utility assumes that you have already created or modified a file that contains the image of the new help screen. Sample.hlp is included with the distribution files to show you what the initial help screen looks like. You may modify the sample help screen or copy it to a new file and make the changes in the new file. By choosing option 1, the configuration utility prompts for the file name with the help screen image. The changes are written to the tde executable file. If you enter a file name that doesn't exist, the configuration utility sorta gracefully exits this function. I didn't do anything fancy with this option. You can't press ESC to quit out; however, if you decide you want to quit, just enter a fictitious or outrageous file name. A harmless error message with be displayed and you may continue with the configuration utility having made no changes to the tde executable file. Option 4. Set Default Editor Modes Function Keys: F3 = Quit Abandons any changes made to the default modes. F10 = Save and Quit When you press this key, the default editor modes are written to the tde executable file. The changes are permanent until you redefine the modes. ESC = Quit Option 5. Install permanent macros Function keys: none This utility assumes that you have already created a macro definition file. The only way to create a macro definition file is to use the "save macro" function in tde.exe. Once you have created your favorite, most useful macros, just save them to a macro file and make them permanent by saving the macro file in tde.exe. If you enter a file name that doesn't exist, the configuration utility sorta gracefully exits this function. I didn't do anything fancy with this option. You can't press ESC to quit out; however, if you decide you want to quit, just enter a fictitious or outrageous file name. A harmless error message with be displayed and you may continue with the configuration utility having made no changes to the tde executable file. Option 6. Read in a configuration file Function keys: none Finally got around to implementing a utility to read in a configuration file. Any function key, editor mode, or color field may be assigned a new setting in the config file. The default configuration file distributed with tde is tde.cfg. If you enter a configuration file name that doesn't exist, the configuration utility sorta gracefully exits this function. I didn't do anything fancy with this option. You can't press ESC to quit out; however, if you decide you want to quit, just enter a fictitious or outrageous file name. A harmless error message with be displayed and you may continue with the configuration utility having made no changes to the tde executable file.