File: keys.html

package info (click to toggle)
netrik 1.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,272 kB
  • ctags: 729
  • sloc: ansic: 6,657; sh: 994; makefile: 114
file content (213 lines) | stat: -rw-r--r-- 6,368 bytes parent folder | download
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<html>
<head>
<title>keystrokes table</title>
</head>
<body>

<h1 align="center">keystrokes table<br />>==================&lt;</h1>

<p>
[This file explains the usage of the netrik interactive UI. See index.txt or
<a href="index.html">index.html</a> for an overview of available netrik
documentation.]
</p>

<p>
Note: netrik is still in early development state; keystrokes and commands are
subject to changes.
</p>

<h2>Introduction</h2>

<p>
netrik's user interface works just like the editor "vi", and some other common
programs (e.g. "less").
</p>

<p>
There are a couple of operation modes, each one with distinct behaviour; these
modes can be switched upon need.
</p>

<p>
The mode entered when starting netrik, and used most of the time, is "normal
mode". In this mode you can move around the page, select links, etc. using
various command letters, and sometimes alternatively the cursor, &lt;PgUp>/&lt;PgDn>
and other keys. (The former have the advantage that you needn't take your hands
off the normal typing position.) The typed letters do not show up anywhere in
this mode; they only tell netrik to do some special action -- just like the
cursor keys.
</p>

<p>
By typing ':' in normal mode, another mode is entered, named "command prompt".
This is indicated by a ':' showing up at the beginning of the bottom screen
line, and the cursor standing just behind this ':'. You can type in a command
here. The command is executed as soon as you type &lt;return>, and netrik returns
to normal mode afterwards.
</p>

<p>
If compiled using the GNU Readline library (default), you can use all the handy
keystrokes for editing the command prompt that are also available in other
programs using Readline. (e.g. the standard GNU/Linux shell "bash".)
</p>

<h2>Keystrokes in normal mode</h2>

<p><pre>
<strong> ^R        </strong>reload current page
 
<strong> b         </strong>
<strong> &lt;left>    </strong>back to previous page in history
 
<strong> f         </strong>
<strong> &lt;right>   </strong>forward to next page in history (after 'b')
 
<strong> B         </strong>back to page before last absolute URL entered/followed
           (previous site)
 
<strong> F         </strong>forward to page before next absolute URL entered/followed
 
<strong> s         </strong>set page mark
 
<strong> S         </strong>remove page mark
 
<strong> r         </strong>return to previous page in history marked with 's'
 
<strong> R         </strong>forward to next page in history marked with 's'
 
<strong> ^H        </strong>cursor left
 
<strong> ^J        </strong>cursor down
 
<strong> ^K        </strong>cursor up
 
<strong> ^L        </strong>cursor right
 
<strong> j         </strong>scroll one line forward
 
<strong> J         </strong>
<strong> &lt;down>    </strong>go to next link, or scroll one line forward
           (if no more links on screen)
 
<strong> k         </strong>scroll one line backward
 
<strong> K         </strong>
<strong> &lt;up>      </strong>go to previous link, or scroll one line backward
           (if no more links on screen)
 
<strong> +         </strong>
<strong> =         </strong>go to first link in next line, or scroll one line forward
           (if no more links on screen)
 
<strong> -         </strong>go to first link in previous line, or scroll one line backward
           (if no more links on screen)
 
<strong> ^         </strong>
<strong> ^A        </strong>go to first link starting in line
 
<strong> -         </strong>go to first link in line
           (different from '^' if there is a link wrapped from previous line)
 
<strong>         </strong>
<strong> ^E        </strong>go to last link in line
 
<strong> H         </strong>go to first link on screen
 
<strong> L         </strong>go to last link on screen
 
<strong> M         </strong>go to midmost link (first link in second screen half)
 
<strong> &lt;tab>     </strong>go to next link
 
<strong> p         </strong>go to previous link
 
<strong> &lt;bs>      </strong>go to first link on page
 
<strong> u         </strong>show link URL
 
<strong> U         </strong>show absolute link target URL
 
<strong> c         </strong>show current page URL
 
<strong> &lt;return>  </strong>follow selected link (or manipulate form control)
 
<strong> &lt;del>     </strong>scroll two lines forward
 
<strong> &lt;ins>     </strong>scroll two lines backward
 
<strong> ^F        </strong>
<strong> &lt;space>   </strong>scroll one screen forward
 
<strong> ^B        </strong>scroll one screen backward
 
<strong> ^D        </strong>
<strong> &lt;PgDn>    </strong>scroll one half screen forward
 
<strong> ^U        </strong>
<strong> &lt;PgUp>    </strong>scroll one half screen backward
 
<strong> g         </strong>
<strong> &lt;Home>    </strong>go to page top
 
<strong> G         </strong>
<strong> &lt;End>     </strong>go to page end
 
<strong> l         </strong>activate links by label
 
<strong> q         </strong>quit netrik
 
<strong> /         </strong>start text search (s.b.)
 
<strong> :         </strong>enter command prompt (s.b.)
</pre></p>

<h2>Command promt</h2>

<p>
Only one command is available for now (in two variations):
</p>

<p><pre>
<strong>:e URL     </strong>load file "URL" and display it in the pager
           (URL relative to current page)
 
<strong>:E URL     </strong>load file "URL" and display it in the pager
           (absolute URL)
</pre></p>

<h2>Text Search</h2>

<p>
Pressing '/' in normal mode opens the search prompt. This is similar to the
command prompt (s.a.), only you are not prompted for a command, but for a
search string. Type in what you want to search for, and confirm with &lt;return>.
</p>

<p>
If you have already done a search in this session, you can search again for the
same string by only pressing &lt;return> without entering any string.
</p>

<p>
Use '^D' on an empty search prompt to abort the prompt and return to the pager.
(If you have already typed some string you first need to delete it, using '^U'
for example.)
</p>

<h2>Signals</h2>

<p>
Netrik intercepts the interrupt signal (SIGINT, usually produced by ^C ), and
uses it to allow aborting a file or HTTP load. In other situations, it is
ignored completely.
</p>

<p>
Use the quit signal (SIGQUIT, usually ^\ ) to "violently" quit netrik. (This
has the same effect as an unintercepted ^C.)
</p>

</body>
</html>