home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / pico / ebind.h < prev    next >
C/C++ Source or Header  |  1998-02-27  |  4KB  |  166 lines

  1. /*
  2.  * $Id: ebind.h,v 4.13 1998/02/28 00:10:21 hubert Exp $
  3.  *
  4.  * Program:    Default key bindings
  5.  *
  6.  *
  7.  * Michael Seibel
  8.  * Networks and Distributed Computing
  9.  * Computing and Communications
  10.  * University of Washington
  11.  * Administration Builiding, AG-44
  12.  * Seattle, Washington, 98195, USA
  13.  * Internet: mikes@cac.washington.edu
  14.  *
  15.  * Please address all bugs and comments to "pine-bugs@cac.washington.edu"
  16.  *
  17.  *
  18.  * Pine and Pico are registered trademarks of the University of Washington.
  19.  * No commercial use of these trademarks may be made without prior written
  20.  * permission of the University of Washington.
  21.  * 
  22.  * Pine, Pico, and Pilot software and its included text are Copyright
  23.  * 1989-1998 by the University of Washington.
  24.  * 
  25.  * The full text of our legal notices is contained in the file called
  26.  * CPYRIGHT, included with this distribution.
  27.  *
  28.  *
  29.  * NOTES:
  30.  *
  31.  *    This files describes the key bindings for pico and the pine 
  32.  *      composer.  The binds are static, (i.e., no way for the user
  33.  *      to change them) so as to keep pico/composer as simple to use
  34.  *      as possible.  This, of course, means the number of functions is
  35.  *      greatly reduced, but, then again, this is seen as very desirable.
  36.  *
  37.  *      There are very limited number of flat ctrl-key bindings left, and 
  38.  *      most of them are slated for yet-to-be implemented functions, like
  39.  *      invoking an alternate editor in the composer and necessary funcs
  40.  *      for imlementing attachment handling.  We really want to avoid 
  41.  *      going to multiple keystroke functions. -mss
  42.  *
  43.  */
  44.  
  45. /*    EBIND:        Initial default key to function bindings for
  46.             MicroEMACS 3.2
  47.  
  48.             written by Dave G. Conroy
  49.             modified by Steve Wilhite, George Jones
  50.             greatly modified by Daniel Lawrence
  51. */
  52.  
  53. #ifndef    EBIND_H
  54. #define    EBIND_H
  55.  
  56.  
  57. /*
  58.  * Command table.
  59.  * This table  is *roughly* in ASCII order, left to right across the
  60.  * characters of the command. This expains the funny location of the
  61.  * control-X commands.
  62.  */
  63. KEYTAB  keytab[NBINDS] = {
  64.     {KEY_UP,        backline},
  65.     {KEY_DOWN,        forwline},
  66.     {KEY_RIGHT,        forwchar},
  67.     {KEY_LEFT,        backchar},
  68.     {KEY_PGUP,        backpage},
  69.     {KEY_PGDN,        forwpage},
  70.     {KEY_HOME,        gotobol},
  71.     {KEY_END,        gotoeol},
  72.     {KEY_DEL,        forwdel},
  73. #ifdef    MOUSE
  74.     {KEY_MOUSE,        mousepress},
  75. #endif
  76.     {CTRL|'A',        gotobol},
  77.     {CTRL|'B',        backchar},
  78.     {CTRL|'C',        abort_composer},
  79.     {CTRL|'D',        forwdel},
  80.     {CTRL|'E',        gotoeol},
  81.     {CTRL|'F',        forwchar},
  82.     {CTRL|'G',        whelp},
  83.     {CTRL|'H',        backdel},
  84.     {CTRL|'I',        tab},
  85.     {CTRL|'J',        fillpara},
  86.     {CTRL|'K',        killregion},
  87.     {CTRL|'L',        refresh},
  88.     {CTRL|'M',        newline},
  89.     {CTRL|'N',        forwline},
  90.     {CTRL|'O',        suspend_composer},
  91.     {CTRL|'P',        backline},
  92.     {CTRL|'R',        insfile},
  93. #ifdef    SPELLER
  94.     {CTRL|'T',        spell},
  95. #endif    /* SPELLER */
  96.     {CTRL|'U',        yank},
  97.     {CTRL|'V',        forwpage},
  98.     {CTRL|'W',        forwsearch},
  99.     {CTRL|'X',        wquit},
  100.     {CTRL|'Y',        backpage},
  101. #ifdef    JOB_CONTROL
  102.     {CTRL|'Z',        bktoshell},
  103. #endif
  104.     {CTRL|'@',        forwword},
  105.     {CTRL|'^',        setmark},
  106.     {CTRL|'_',        alt_editor},
  107.     {0x7F,            backdel},
  108.     {0,            NULL}
  109. };
  110.  
  111.  
  112. /*
  113.  * Command table.
  114.  * This table  is *roughly* in ASCII order, left to right across the
  115.  * characters of the command. This expains the funny location of the
  116.  * control-X commands.
  117.  */
  118. KEYTAB  pkeytab[NBINDS] = {
  119.     {KEY_UP,        backline},
  120.     {KEY_DOWN,        forwline},
  121.     {KEY_RIGHT,        forwchar},
  122.     {KEY_LEFT,        backchar},
  123.     {KEY_PGUP,        backpage},
  124.     {KEY_PGDN,        forwpage},
  125.     {KEY_HOME,        gotobol},
  126.     {KEY_END,        gotoeol},
  127.     {KEY_DEL,        forwdel},
  128. #ifdef    MOUSE
  129.     {KEY_MOUSE,        mousepress},
  130. #endif
  131.     {CTRL|'A',        gotobol},
  132.     {CTRL|'B',        backchar},
  133.     {CTRL|'C',        showcpos},
  134.     {CTRL|'D',        forwdel},
  135.     {CTRL|'E',        gotoeol},
  136.     {CTRL|'F',        forwchar},
  137.     {CTRL|'G',        whelp},
  138.     {CTRL|'H',        backdel},
  139.     {CTRL|'I',        tab},
  140.     {CTRL|'J',        fillpara},
  141.     {CTRL|'K',        killregion},
  142.     {CTRL|'L',        refresh},
  143.     {CTRL|'M',        newline},
  144.     {CTRL|'N',        forwline},
  145.     {CTRL|'O',        filewrite},
  146.     {CTRL|'P',        backline},
  147.     {CTRL|'R',        insfile},
  148. #ifdef    SPELLER
  149.     {CTRL|'T',        spell},
  150. #endif    /* SPELLER */
  151.     {CTRL|'U',        yank},
  152.     {CTRL|'V',        forwpage},
  153.     {CTRL|'W',        forwsearch},
  154.     {CTRL|'X',        wquit},
  155.     {CTRL|'Y',        backpage},
  156. #ifdef    JOB_CONTROL
  157.     {CTRL|'Z',        bktoshell},
  158. #endif
  159.     {CTRL|'@',        forwword},
  160.     {CTRL|'^',        setmark},
  161.     {0x7F,            backdel},
  162.     {0,            NULL}
  163. };
  164.  
  165. #endif    /* EBIND_H */
  166.