File: appendix.3

package info (click to toggle)
the 3.3~rc1-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 5,492 kB
  • ctags: 5,889
  • sloc: ansic: 73,773; sh: 2,904; makefile: 803
file content (146 lines) | stat: -rw-r--r-- 7,648 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/*man-start*********************************************************************


========================================================================
APPENDIX 3 - POINTER DEVICE SUPPORT IN THE
========================================================================

This appendix describes the default behaviour of supported pointer devices
when running THE; usually a mouse.

------
SYNTAX:
------

Mouse "keys" have the following syntax:

 +--------------------+----------------------------------------------+
 | [a-]bcB IN window  |  Description                                 |
 +--------------------+----------------------------------------------+
 | [a-]               |is a keyboard modifier, the same as keyboard  |
 |                    |keys.  The 'a' can be one of S,C or A for     |
 |                    |SHIFT, CONTROL and ALT respectively. The '-'  |
 |                    |is mandatory.                                 |
 | b                  |is the mouse action.  This can be one of P, R,|
 |                    |C, 2, D or S for PRESS, RELEASE, CLICK,       |
 |                    |DOUBLE_CLICK, DRAG and SCROLL respectively.   |
 | c                  |is the mouse button. This can be one of L, R  |
 |                    |M, U or D for LEFT, RIGHT, MIDDLE, UP or DOWN |
 |                    | respectively.                                |
 | d                  |B for BUTTON, W for WHEEL                     |
 | IN                 |mandatory keyword                             |
 | window             |the area of the screen in which the mouse     |
 |                    |event is to take place.  The valid values     |
 |                    |for this are:                                 |
 |                    |Filearea, Cmdline, Idline, Arrow, PRefix,     |
 |                    |STatarea, Divider and * (for all)             |
 +--------------------+----------------------------------------------+


--------
EXAMPLES:
--------

 +--------------------+------------------------------------+
 |   Mouse Event      |  Description                       |
 +--------------------+------------------------------------+
 | S-PLB IN PR        | Left mouse button is pressed,      |
 |                    | while holding down the SHIFT key,  |
 |                    | and the mouse positioned in the    |
 |                    | prefix area.                       |
 |   2RB IN I         | Right mouse button double-clicked  |
 |                    | in idline.                         |
 |   SUW IN *         | Scroll Up Wheel in all windows.    |
 +--------------------+------------------------------------+


--------
DEFAULTS:
--------

 +------------------------+------------------------------------+
 | Mouse Event (Win32)    |  Command(s)                        |
 +------------------------+------------------------------------+
 |   2LB in FILEAREA      | cursor MOUSE#sos EDIT              |
 |   2LB in PREFIX        | cursor MOUSE#sos EDIT              |
 |   CRB in FILEAREA      | cursor MOUSE#sos MAKECURR          |
 |   CRB in PREFIX        | cursor MOUSE#sos MAKECURR          |
 |   CLB in CMDLINE       | cursor MOUSE                       |
 |   CLB in DIVIDER       | screen 1                           |
 |   CLB in FILEAREA      | cursor MOUSE                       |
 |   CLB in FILETABS      | tabfile                            |
 |   CLB in IDLINE        | xedit                              |
 |   CLB in PREFIX        | cursor MOUSE                       |
 |   CLB in STATAREA      | status                             |
 |   CRB in IDLINE        | xedit -                            |
 | A-PLB in FILEAREA      | backward                           |
 | A-PRB in FILEAREA      | forward                            |
 | C-DLB in FILEAREA      | cursor MOUSE#mark BOX              |
 | C-PLB in FILEAREA      | cursor MOUSE#reset BLOCK#mark BOX  |
 | C-PRB in FILEAREA      | cursor MOUSE#mark BOX              |
 | S-DLB in FILEAREA      | cursor MOUSE#mark LINE             |
 | S-PLB in FILEAREA      | cursor MOUSE#reset BLOCK#mark LINE |
 | S-PRB in FILEAREA      | cursor MOUSE#mark LINE             |
 |   SUW in *             | backward 5 lines                   |
 |   SDW in *             | forward 5 lines                    |
 |   SLW in *             | left 5                             |
 |   SRW in *             | right 5                            |
 +------------------------+------------------------------------+

 +------------------------+------------------------------------+
 | Mouse Event (X11)      |  Command(s)                        |
 +------------------------+------------------------------------+
 |   2LB in FILEAREA      | cursor MOUSE#sos EDIT              |
 |   2LB in PREFIX        | cursor MOUSE#sos EDIT              |
 |   CLB in CMDLINE       | cursor MOUSE                       |
 |   CLB in DIVIDER       | screen 1                           |
 |   CLB in FILEAREA      | cursor MOUSE                       |
 |   CLB in IDLINE        | xedit                              |
 |   CLB in PREFIX        | cursor MOUSE                       |
 |   CLB in STATAREA      | status                             |
 |   CRB in FILEAREA      | cursor MOUSE#sos MAKECURR          |
 |   CRB in IDLINE        | xedit -                            |
 |   CRB in PREFIX        | cursor MOUSE#sos MAKECURR          |
 | C-DLB in FILEAREA      | cursor MOUSE#mark BOX              |
 | C-PLB in FILEAREA      | cursor MOUSE#reset BLOCK#mark BOX  |
 | C-PRB in FILEAREA      | cursor MOUSE#mark BOX              |
 | S-DLB in FILEAREA      | cursor MOUSE#mark LINE             |
 | S-PLB in FILEAREA      | cursor MOUSE#reset BLOCK#mark LINE |
 | S-PRB in FILEAREA      | cursor MOUSE#mark LINE             |
 +------------------------+------------------------------------+

 +------------------------+------------------------------------+
 | Mouse Event (ncurses)  |  Command(s)                        |
 +------------------------+------------------------------------+
 |   2LB in FILEAREA      | cursor MOUSE#sos EDIT              |
 |   2LB in PREFIX        | cursor MOUSE#sos EDIT              |
 |   CLB in CMDLINE       | cursor MOUSE                       |
 |   CLB in DIVIDER       | screen 1                           |
 |   CLB in FILEAREA      | cursor MOUSE                       |
 |   CLB in IDLINE        | xedit                              |
 |   CLB in PREFIX        | cursor MOUSE                       |
 |   CLB in STATAREA      | status                             |
 |   CRB in FILEAREA      | cursor MOUSE#sos MAKECURR          |
 |   CRB in IDLINE        | xedit -                            |
 |   CRB in PREFIX        | cursor MOUSE#sos MAKECURR          |
 +------------------------+------------------------------------+


-----
NOTES:
-----

1.  In the X11 port, pressing the middle mouse button anywhere within the
    THE window, will result in the contents of the X selection being pasted
    where the text cursor is currently displayed.  If you hold down
    any modifier key, such as SHIFT or CONTROL, that sequence is
    passed to THE and can be mapped. Therefore; PMB or RMD is NOT
    able to be used in THE, but C-PMB, C-RMB, S-PMB etc. can.

2.  The button action DOUBLE_CLICKED will always be preceded by a CLICK
    action. This is the case for THE with ncurses or PDCurses. Therefore
    itis usually a good idea to have the CLICK action assigned to a
    cursor positioning command if the DOUBLE_CLICK for the same button is
    used.

**man-end**********************************************************************/