2
* $Id: ebind.h 113 2006-09-01 21:54:31Z hubert@u.washington.edu $
4
* ========================================================================
5
* Copyright 2006 University of Washington
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
11
* http://www.apache.org/licenses/LICENSE-2.0
13
* ========================================================================
15
* Program: Default key bindings
19
* This files describes the key bindings for pico and the pine
20
* composer. The binds are static, (i.e., no way for the user
21
* to change them) so as to keep pico/composer as simple to use
22
* as possible. This, of course, means the number of functions is
23
* greatly reduced, but, then again, this is seen as very desirable.
25
* There are very limited number of flat ctrl-key bindings left, and
26
* most of them are slated for yet-to-be implemented functions, like
27
* invoking an alternate editor in the composer and necessary funcs
28
* for imlementing attachment handling. We really want to avoid
29
* going to multiple keystroke functions. -mss
33
/* EBIND: Initial default key to function bindings for
36
written by Dave G. Conroy
37
modified by Steve Wilhite, George Jones
38
greatly modified by Daniel Lawrence
47
* This table is *roughly* in ASCII order, left to right across the
48
* characters of the command. This expains the funny location of the
51
KEYTAB keytab[NBINDS] = {
54
{KEY_RIGHT, forwchar},
62
{KEY_MOUSE, mousepress},
66
{CTRL|'C', abort_composer},
74
{CTRL|'K', killregion},
75
{CTRL|'L', pico_refresh},
78
{CTRL|'O', suspend_composer},
86
{CTRL|'W', forwsearch},
90
{CTRL|'Z', bktoshell},
94
{CTRL|'_', alt_editor},
102
* This table is *roughly* in ASCII order, left to right across the
103
* characters of the command. This expains the funny location of the
104
* control-X commands.
106
KEYTAB pkeytab[NBINDS] = {
108
{KEY_DOWN, forwline},
109
{KEY_RIGHT, forwchar},
110
{KEY_LEFT, backchar},
111
{KEY_PGUP, backpage},
112
{KEY_PGDN, forwpage},
117
{KEY_MOUSE, mousepress},
120
{CTRL|'B', backchar},
121
{CTRL|'C', showcpos},
124
{CTRL|'F', forwchar},
128
{CTRL|'J', fillpara},
129
{CTRL|'K', killregion},
130
{CTRL|'L', pico_refresh},
132
{CTRL|'N', forwline},
133
{CTRL|'O', filewrite},
134
{CTRL|'P', backline},
140
{CTRL|'V', forwpage},
141
{CTRL|'W', forwsearch},
143
{CTRL|'Y', backpage},
145
{CTRL|'Z', bktoshell},
147
{CTRL|'@', forwword},