home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / tinyed.zip / TKEYS.DEF < prev   
Text File  |  1993-12-01  |  9KB  |  212 lines

  1. /*********************************************************************
  2.  *                                                                   *
  3.  * T - A Tiny Editor                                                 *
  4.  *                                                                   *
  5.  * tkeys.def  Sample Custom Definition File                          *
  6.  *                                                                   *
  7.  *********************************************************************
  8.  * This is an example of a Custom Definition File used to customise  *
  9.  * the T editor.  It contains the definition that describes the      *
  10.  * default configuration.                                            *
  11.  *                                                                   *
  12.  * If you want to customise your version of T it is recommended that *
  13.  * you make a copy of this file with another name and make your      *
  14.  * changes to your copy rather than to this original.  That way if   *
  15.  * you ever get a new copy of the editor (which will include this    *
  16.  * file) you won't lose your changes.                                *
  17.  *                                                                   *
  18.  * To customise the editor use the TKEY program from the DOS or OS/2 *
  19.  * command line:                                                     *
  20.  *                                                                   *
  21.  *    TKEY YOUR.DEF T.EXE    for the DOS version                     *
  22.  * or TKEY YOUR.DEF T2.EXE   for the OS/2 version                    *
  23.  *                                                                   *
  24.  * The format of this Custom Definition File should be fairly clear  *
  25.  * but refer to the T documentation for full details.                *
  26.  *                                                                   *
  27.  * By: Tim Baldwin                                                   *
  28.  *     IBM UK Laboratories, Hursley Park, Winchester, UK             *
  29.  *     BALDWINT at WINVMB            GBIBMN56 at IBMMAIL             *
  30.  *     baldy@vnet.ibm.com                                            *
  31.  *********************************************************************
  32.  *             (C) Copyright IBM Corporation 1987, 1993              *
  33.  *********************************************************************/
  34.  
  35. /*--- Colour Definitions --------------------------------------------*
  36.  * Colour definitions give the colours used for the various screen   *
  37.  * areas.  Two sets are defined: "mono" colours are used with true   *
  38.  * monochrome screens or with colour screens in the black-and-white  *
  39.  * modes (e.g. MODE BW80); "colour" colours are used with all colour *
  40.  * screens in normal colour modes.                                   *
  41.  *                                                                   *
  42.  * You can spell "colour" as "color" if you prefer!                  *
  43.  *-------------------------------------------------------------------*/
  44.  
  45. // Colour display colours ...
  46.  
  47.  colour data lines    = bright white on blue
  48.  colour mark lines    = bright white on brown
  49.  colour show lines    = bright turquoise on blue
  50.  colour shadow cursor = black on white
  51.  colour command line  = bright white on turquoise
  52.  colour status line   = bright turquoise on blue
  53.  colour help line     = bright white on blue
  54.  colour message line  = yellow on blue
  55.  
  56. // Monochrome display colours ...
  57.  
  58.  mono data lines    = normal
  59.  mono mark lines    = reverse
  60.  mono show lines    = normal
  61.  mono shadow cursor = bright underline
  62.  mono command line  = reverse
  63.  mono status line   = normal
  64.  mono help line     = normal
  65.  mono message line  = bright normal
  66.  
  67.  
  68. /*--- Keyboard Definitions ------------------------------------------*
  69.  * Keyboard definitions assign the editor's "Keyboard Functions" to  *
  70.  * key combinations.  When the key is pressed the function is execu- *
  71.  * ted.                                                              *
  72.  *                                                                   *
  73.  * The following Keyboard Function is also available but not assig-  *
  74.  * ned in the default configuration:                                 *
  75.  *    file                                                           *
  76.  *-------------------------------------------------------------------*/
  77.  
  78. // The F-keys ...
  79.  
  80.  key f1  = help
  81.  key f2  = save
  82.  key f3  = quit
  83.  key f4  = safe file
  84.  key f5  = user
  85.  key f7  = name
  86.  key f8  = edit
  87.  key f9  = undo
  88.  key f10 = next file
  89.  key f11 = previous file
  90.  key f12 = focus
  91.  
  92. // Cursor and data movement ...
  93.  
  94.  key s-f1 = scroll left
  95.  key s-f2 = scroll right
  96.  key s-f3 = scroll up
  97.  key s-f4 = scroll down
  98.  
  99.  key up       = up
  100.  key down     = down
  101.  key left     = left
  102.  key right    = right
  103.  key pgup     = page up
  104.  key pgdn     = page down
  105.  key home     = start of line
  106.  key end      = end of line
  107.  key tab      = next tab
  108.  key s-tab    = previous tab
  109.  key padenter = next line
  110.  
  111.  key c-left  = previous word
  112.  key c-right = next word
  113.  key c-home  = top of file
  114.  key c-end   = end of file
  115.  key c-pgup  = top of screen
  116.  key c-pgdn  = end of screen
  117.  
  118. // Character and line insertion and deletion ...
  119.  
  120.  key ins         = insert toggle
  121.  key del         = delete character
  122.  key backspace   = backspace
  123.  key enter       = new line
  124.  key c-enter     = insert line
  125.  key c-padenter  = insert line
  126.  key c-backspace = delete line
  127.  key a-t         = truncate line
  128.  key a-r         = repeat line
  129.  key a-s         = split line
  130.  key a-j         = join line
  131.  key a-a         = adjust line
  132.  
  133. // Line marking ...
  134.  
  135.  key a-l = set mark
  136.  key a-u = clear mark
  137.  key a-c = copy mark
  138.  key a-m = move mark
  139.  key a-d = delete mark
  140.  key a-y = top of mark
  141.  key a-e = end of mark
  142.  
  143.  key s-f7 = mark left
  144.  key s-f8 = mark right
  145.  
  146. // Miscellaneous ...
  147.  
  148.  key esc = command toggle
  149.  
  150.  key a-f = repeat find
  151.  
  152.  key a-x = escape
  153.  key c-2 = ascii 0
  154.  
  155. // Box drawing characters ...
  156.  
  157.  key a-1 = ascii 192            // Bottom left corner
  158.  key a-2 = ascii 193            // Bottom intersection
  159.  key a-3 = ascii 217            // Bottom right corner
  160.  key a-4 = ascii 195            // Left intersection
  161.  key a-5 = ascii 197            // Centre intersection
  162.  key a-6 = ascii 180            // Right intersection
  163.  key a-7 = ascii 218            // Top left corner
  164.  key a-8 = ascii 194            // Top intersection
  165.  key a-9 = ascii 191            // Top right corner
  166.  key a-- = ascii 196            // Horizontal line
  167.  key a-= = ascii 179            // Vertical line
  168.  
  169. // All other keys do nothing, for example ...
  170.  
  171.  key a-q = nothing
  172.  
  173.  
  174. /*--- Editor Settings -----------------------------------------------*
  175.  * Editor settings allow various aspects of the editor's appearance  *
  176.  * and operation to be changed to suit individual preferences.  The  *
  177.  * settings are divided into two groups: General Settings contains   *
  178.  * those things most people might want to alter and Special Settings *
  179.  * contains things normally best left alone.                         *
  180.  *-------------------------------------------------------------------*/
  181.  
  182. // General settings ...
  183.  
  184.  set command toggle = command   // Start up on the command line
  185.  set insert toggle  = replace   // Start up in Replace mode
  186.  set replace cursor = line      // Underscore cursor in Replace mode
  187.  set insert cursor  = half      // Half block cursor in Insert mode
  188.  set focus line     = 2         // Focus on the second data line
  189.  set right margin   = off       // No right hand margin
  190.  set exact match    = on        // Match case exactly when searching
  191.  
  192.  set help command   = "T THELP.HLP"
  193.  set user command   = "DOS"
  194.  
  195. // Help text ...
  196.  
  197.  set help line =
  198.      "F1=Help F2=Save F3=Quit F4=File F5=DOS          F7=Name F8=Edit "
  199.      "F9=Undo F10=Next F11=Prev F12=Focus"
  200.  
  201. // Special settings.  These are not normally altered.
  202.  
  203.  set tab spacing      = 8       // Tabs positioned every 8 columns
  204.  set tab expand       = on      // Expand tabs to spaces on loading
  205.  set command recall   = on      // Save previous commands for recall
  206.  set automatic indent = on      // Align cursor when inserting lines
  207.  set keyboard type    = default // Use default keyboard style
  208.  set cga snow         = off     // Remove CGA screen "snow"
  209.  set line end         = default // Accept DOS and UNIX style files
  210.  set segment size     = default // Use default size storage segments
  211.  
  212.