| 1 |
<!-- $LynxId: alt_edit_help.html,v 1.22 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 Alternative Key Binding</title> |
| 8 |
<link rel="author" href="mailto:[email protected]"> |
| 9 |
<link rel="Sibling" title="Default Binding" href= |
| 10 |
"edit_help.html"> |
| 11 |
<link rel="Sibling" title="Bash-Like Binding" href= |
| 12 |
"bashlike_edit_help.html"> |
| 13 |
<meta http-equiv="Content-Type" content= |
| 14 |
"text/html; charset=us-ascii"> |
| 15 |
<meta name="description" content= |
| 16 |
"Describes an alternative set of line editor bindings for Lynx. This is one of the alternate bindings normally compiled-in"> |
| 17 |
</head> |
| 18 |
<body> |
| 19 |
<div class="nav"> |
| 20 |
<ul> |
| 21 |
<li><a href="#overview">Overview</a></li> |
| 22 |
|
| 23 |
<li><a href="#alternate_bindings">Table of key-bindings</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 <a href= |
| 32 |
"edit_help.html">Line Editor</a> for entering strings in response |
| 33 |
to prompts, in forms, and for email messages if an external |
| 34 |
editor has not been defined. Additional alternative key-bindings |
| 35 |
can be offered by configuring with |
| 36 |
<code>--enable-alt-bindings</code> or by adding them in |
| 37 |
LYEditmap.c before compiling <strong>Lynx</strong>. If available, |
| 38 |
they may be selected via the “o”ptions menu, or by |
| 39 |
editing lineedit_mode in the “.lynxrc” file.</p> |
| 40 |
|
| 41 |
<p><strong><em>Note:</em></strong> setting emacs/vi keys ON has |
| 42 |
no direct effect on line-editor bindings.</p> |
| 43 |
|
| 44 |
<h2><a name="alternate_bindings" id="alternate_bindings">Table of |
| 45 |
key-bindings</a></h2> |
| 46 |
|
| 47 |
<p>This is the <em>Alternative Binding</em> keymap.</p> |
| 48 |
|
| 49 |
<pre> |
| 50 |
ENTER Input complete - RETURN |
| 51 |
TAB Input complete - TAB, Do |
| 52 |
ABORT Input cancelled - Ctrl-G, Ctrl-O, (Ctrl-C on some systems) |
| 53 |
ERASE Erase the line - Ctrl-U |
| 54 |
|
| 55 |
BACK Cursor back char - Left-Arrow, Ctrl-B |
| 56 |
FORW Cursor forward char - Right-Arrow, Ctrl-F |
| 57 |
BACKW Cursor back word - Ctrl-P |
| 58 |
FORWW Cursor forward word - Ctrl-N |
| 59 |
BOL Go to begin of line - Ctrl-A, Home, Find |
| 60 |
EOL Go to end of line - Ctrl-E, End, Select |
| 61 |
|
| 62 |
DELP Delete prev char - Backspace, Delete, Remove |
| 63 |
DELN Delete next char - Ctrl-D (<em><a href= |
| 64 |
"#note_1">see note 1</a></em>) |
| 65 |
DELPW Delete prev word - Ctrl-R |
| 66 |
DELNW Delete next word - Ctrl-T |
| 67 |
DELEL Delete to end of line - Ctrl-K |
| 68 |
|
| 69 |
UPPER Upper case the line - Ctrl-^ |
| 70 |
LOWER Lower case the line - Ctrl-_ |
| 71 |
|
| 72 |
LKCMD Invoke cmd prompt - Ctrl-V (in form text fields, only) (<em><a href="#note_2">see note 2</a></em>) |
| 73 |
|
| 74 |
<a name="TASpecial" id= |
| 75 |
"TASpecial">Special commands for use only in textarea fields</a> (<em><a href="#note_3">see note 3</a></em>): |
| 76 |
|
| 77 |
Textarea external edit - Ctrl-X e |
| 78 |
Insert file in textarea - Ctrl-X i |
| 79 |
Grow textarea - Ctrl-X g |
| 80 |
</pre> |
| 81 |
<h2><a name="emacs_bindings" id="emacs_bindings">Emacs-like |
| 82 |
commands</a></h2> |
| 83 |
|
| 84 |
<pre> |
| 85 |
TPOS Transpose characters - Ctrl-t |
| 86 |
SETMARK Set mark at current position in line - Ctrl-@ |
| 87 |
XPMARK Exchange current position with mark - Ctrl-x Ctrl-x |
| 88 |
KILLREG Kill region between mark and position - Ctrl-x Ctrl-w (<em><a href="#note_3">see note 3</a></em>) |
| 89 |
YANK Insert text last killed (with KILLREG) - Ctrl-y |
| 90 |
</pre> |
| 91 |
<h2><a name="examples" id="examples">Try it yourself</a></h2> |
| 92 |
|
| 93 |
<p>Here is a little textarea for practice:</p> |
| 94 |
|
| 95 |
<form action=""> |
| 96 |
<p> |
| 97 |
<textarea name="practice" cols="40" rows= |
| 98 |
"5">This text cannot be submitted. Normally lines like |
| 99 |
these would be part of a form that is filled out and |
| 100 |
then submitted. You can move around here and delete |
| 101 |
or add text as you like, using the Line-Editor keys. |
| 102 |
</textarea><input type="reset" value="[reset content]"> |
| 103 |
</p> |
| 104 |
</form> |
| 105 |
|
| 106 |
<h2><a name="special_keys" id="special_keys">Special keys</a></h2> |
| 107 |
|
| 108 |
<p>See the <em><a href="edit_help.html#special_keys">Lynx Line |
| 109 |
Editor</a></em> page for an explanation of terminology and |
| 110 |
key-names.</p> |
| 111 |
|
| 112 |
<h2><a name="notes" id="notes">Notes</a></h2> |
| 113 |
|
| 114 |
<ol> |
| 115 |
<li id="note_1">"next" means the character "under" a box or |
| 116 |
underline style cursor; it means "to the immediate right of" an |
| 117 |
I-beam (between characters) type cursor.</li> |
| 118 |
|
| 119 |
<li id="note_2">Follow Ctrl-V with any recognized key command, |
| 120 |
to "escape" from a text input field.</li> |
| 121 |
|
| 122 |
<li id="note_3">For other key combinations using Ctrl-X as a |
| 123 |
prefix key, see the Help page for the <a rel="Sibling" title= |
| 124 |
"Bash-Like Binding" href= |
| 125 |
"bashlike_edit_help.html">Bash-Like</a> Binding.</li> |
| 126 |
</ol> |
| 127 |
</body> |
| 128 |
</html> |