Debian Codegraph @

lynx_help/keystrokes/edit_help.html

raw
1 <!-- $LynxId: edit_help.html,v 1.31 2025/07/30 23:38:53 tom Exp $ -->
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
3 <html>
4 <head>
5 <meta name="generator" content=
6 "HTML Tidy for HTML5 for Linux version 5.6.0">
7 <title>Lynx Line Editor Default Key Binding</title>
8 <link rel="author" href="mailto:[email protected]">
9 <meta http-equiv="Content-Type" content=
10 "text/html; charset=us-ascii">
11 <meta name="description" content=
12 "Describes Lynx's built-in line-editor, when it is used, and the keys used for the default binding. There are alternate and special bindings.">
13 </head>
14 <body>
15 <div class="nav">
16 <ul>
17 <li><a href="#overview">Overview</a></li>
18
19 <li><a href="#regular_keymap">Regular Keymap</a></li>
20
21 <li><a href="#editing_keymap">Editing Keymap</a></li>
22
23 <li><a href="#examples">Try it yourself</a></li>
24
25 <li><a href="#notes">Notes</a></li>
26 </ul>
27 </div>
28
29 <h2><a name="overview" id="overview">Overview</a></h2>
30
31 <p><strong>Lynx</strong> invokes a built-in <em>Line Editor</em>
32 for entering strings in response to prompts, in forms, and for
33 email messages if an external editor has not been defined.
34 Alternative key bindings are normally available (unless
35 <strong>Lynx</strong> was configured with
36 <code>--disable-alt-bindings</code>). If available, they may be
37 selected via the &ldquo;o&rdquo;ptions menu, or by editing
38 lineedit_mode in the &ldquo;.lynxrc&rdquo; file.</p>
39
40 <p>Two such alternative key bindings, which may be available on
41 your system, are the</p>
42
43 <ul>
44 <li><a href="alt_edit_help.html">Alternative Binding</a> keymap
45 and the</li>
46
47 <li><a href="bashlike_edit_help.html">Bash-like Binding</a>
48 keymap.</li>
49 </ul>
50
51 <p>You can always see the current set of key-bindings in
52 <strong>Lynx</strong> by opening the special URL <a href=
53 "LYNXEDITMAP:">LYNXEDITMAP:</a>. This page is provided for those
54 not using Lynx.</p>
55
56 <p><strong><em>Note:</em></strong> setting emacs/vi keys ON has
57 no effect on line-editor bindings.</p>
58
59 <h2><a name="regular_keymap" id="regular_keymap">Regular
60 Keymap</a></h2>
61
62 <p>This is the <em>Default Binding</em> keymap:</p>
63
64 <pre>
65 ENTER Input complete - RETURN
66 TAB Input complete - TAB, Do
67 ABORT Input cancelled - Ctrl-G, Ctrl-O, (Ctrl-C on some systems)
68 ERASE Erase the line - Ctrl-U
69
70 BACK Cursor back char - Left-Arrow
71 FORW Cursor forward char - Right-Arrow
72 BACKW Cursor back word - Ctrl-P
73 FORWW Cursor forward word - Ctrl-N
74 BOL Go to begin of line - Ctrl-A, Home, Find
75 EOL Go to end of line - Ctrl-E, End, Select
76
77 DELP Delete prev char - Backspace, Delete, Remove
78 DELN Delete next char - Ctrl-D, Ctrl-R (<em><a href=
79 "#note_1">see note 1</a></em>)
80 DELPW Delete prev word - Ctrl-B
81 DELNW Delete next word - Ctrl-F
82 DELEL Delete to end of line - Ctrl-_
83
84 UPPER Upper case the line - Ctrl-T
85 LOWER Lower case the line - Ctrl-K
86
87 LKCMD Invoke cmd prompt - Ctrl-V (in form text fields, only) (<em><a href="#note_2">see note 2</a></em>)
88 SWMAP Switch input keymap - Ctrl-^ (if compiled in)
89 </pre>
90 <h2><a name="editing_keymap" id="editing_keymap">Editing
91 Keymap</a></h2>
92
93 <p><a name="TASpecial" id="TASpecial">These are special commands
94 for use only in textarea fields</a> (<em><a href="#note_3">see
95 note 3</a></em>):</p>
96
97 <pre>
98 Textarea external edit - Ctrl-X e
99 Insert file in textarea - Ctrl-X i
100 Grow textarea - Ctrl-X g
101 </pre>
102 <h2><a name="emacs_bindings" id="emacs_bindings">Emacs-like
103 commands</a></h2>
104
105 <pre>
106 TPOS Transpose characters - Ctrl-t
107 SETMARK Set mark at current position in line - Ctrl-@
108 XPMARK Exchange current position with mark - Ctrl-x Ctrl-x
109 KILLREG Kill region between mark and position - Ctrl-x Ctrl-w (<em><a href="#note_3">see note 3</a></em>)
110 YANK Insert text last killed (with KILLREG) - Ctrl-y
111 </pre>
112 <h2><a name="examples" id="examples">Try it yourself</a></h2>
113
114 <p>Here is a little textarea for practice:</p>
115
116 <form action="">
117 <p>
118 <textarea name="practice" cols="40" rows=
119 "5">This text cannot be submitted. Normally lines like
120 these would be part of a form that is filled out and
121 then submitted. You can move around here and delete
122 or add text as you like, using the Line-Editor keys.
123 </textarea><input type="reset" value="[reset content]">
124 </p>
125 </form>
126
127 <h2><a name="special_keys" id="special_keys">Special keys</a></h2>
128
129 <p><samp><dfn>Ctrl-</dfn><strong>key</strong> means
130 Control+<strong><kbd>key</kbd></strong>.
131 <dfn><code>Ctrl-x</code></dfn> <strong>key</strong> means first
132 Control+<kbd>x</kbd>, then <strong><kbd>key</kbd></strong>.
133 <dfn>M-</dfn>key means Meta+<strong><kbd>key</kbd></strong>,
134 where Meta is a modifier that can be entered in a variety of
135 ways:</samp>
136 </p>
137
138 <ul>
139 <li>First ESC, then the <strong><kbd>key</kbd></strong>. This
140 does not work with all systems or on all connections, and if it
141 does may not work for some keys (because the ESC character is
142 also part of code sequences for "normal" function keys).</li>
143
144 <li>Alt+<strong><kbd>key</kbd></strong>. This works if the
145 terminal, console, or comm program is set up to interpret Alt
146 as a modifier to send ESC. The Linux console acts like that by
147 default for most keys; Kermit can be set up to do it, xterm can
148 be for some keys, and so on. But the same caveats as for the
149 previous item apply. This Alt mapping may also be possible,
150 independent of the ESC character, for some keys in
151 <strong>Lynx</strong> for DOS/i386 or for Win32.</li>
152
153 <li>Ctrl-x <strong><kbd>key</kbd></strong>. Actually, currently
154 the same internal table is used for Meta and the Ctrl-x prefix.
155 Therefore all M-<strong><kbd>key</kbd></strong> combinations
156 can also be typed as Ctrl-x <strong><kbd>key</kbd></strong>,
157 and vice versa.</li>
158 </ul>
159
160 <p>A few key names may be less familiar now than when
161 <strong>Lynx</strong> was first written: <em>Find</em>,
162 <em>Select</em> and <em>Remove</em>. The <a href=
163 "https://invisible-island.net/xterm/xterm.faq.html#xterm_keypad">XTerm
164 FAQ</a> shows some typical keypad layouts of emulators for VT220
165 and other DEC terminals.</p>
166
167 <p>The VT220 did not have a &ldquo;backspace&rdquo; key but
168 <strong>Lynx</strong>'s default bindings mention it. Both ASCII
169 <samp>BS</samp> (backspace) and <samp>DEL</samp> are bound by
170 default to the same functions. <samp>DEL</samp> (occasionally
171 referred to as <samp>RUBOUT</samp>) is not the same as
172 <samp>Delete</samp>: the former is a single character while the
173 latter is usually a sequence of characters.</p>
174
175 <h2><a name="notes" id="notes">Notes</a></h2>
176
177 <ol>
178 <li id="note_1">"next" means the character "under" a box or
179 underline style cursor; it means "to the immediate right of" an
180 I-beam (between characters) type cursor.</li>
181
182 <li id="note_2">Follow Ctrl-V with any recognized key command,
183 to "escape" from a text input field.</li>
184
185 <li id="note_3">For other key combinations using Ctrl-X as a
186 prefix key, see the Help page for the <a rel="Sibling" title=
187 "Bash-Like Binding" href=
188 "bashlike_edit_help.html">Bash-Like</a> Binding.</li>
189 </ol>
190 </body>
191 </html>