|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
<html>
|
|
Packit |
f574b8 |
<head>
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
"HTML Tidy for Linux (vers 25 March 2009), see www.w3.org">
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
<title>Lynx Line Editor Default Key Binding</title>
|
|
Packit |
f574b8 |
<link rev="made" href="mailto:lynx-dev@nongnu.org">
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
"text/html; charset=us-ascii">
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
" 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.">
|
|
Packit |
f574b8 |
</head>
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
<body>
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Overview
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Regular Keymap
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Editing Keymap
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Try it yourself
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Notes
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Lynx invokes a built-in Line Editor
|
|
Packit |
f574b8 |
for entering strings in response to prompts, in forms, and for
|
|
Packit |
f574b8 |
email messages if an external editor has not been defined.
|
|
Packit |
f574b8 |
Alternative key bindings are normally available (unless
|
|
Packit |
f574b8 |
Lynx was configured with
|
|
Packit |
f574b8 |
--disable-alt-bindings ). If available, they may be
|
|
Packit |
f574b8 |
selected via the “o”ptions menu, or by editing
|
|
Packit |
f574b8 |
lineedit_mode in the “.lynxrc” file.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Two such alternative key bindings, which may be available on
|
|
Packit |
f574b8 |
your system, are the
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Alternative Binding keymap
|
|
Packit |
f574b8 |
and the
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Bash-like Binding
|
|
Packit |
f574b8 |
keymap.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
You can always see the current set of key-bindings in
|
|
Packit |
f574b8 |
Lynx by opening the special URL
|
|
Packit |
f574b8 |
"LYNXEDITMAP:">LYNXEDITMAP:. This page is provided for those
|
|
Packit |
f574b8 |
not using Lynx.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Note: setting emacs/vi keys ON has
|
|
Packit |
f574b8 |
no effect on line-editor bindings.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Keymap
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
This is the Default Binding keymap:
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
ENTER Input complete - RETURN
|
|
Packit |
f574b8 |
TAB Input complete - TAB, Do
|
|
Packit |
f574b8 |
ABORT Input cancelled - Ctrl-G, Ctrl-O, (Ctrl-C on some systems)
|
|
Packit |
f574b8 |
ERASE Erase the line - Ctrl-U
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
BACK Cursor back char - Left-Arrow
|
|
Packit |
f574b8 |
FORW Cursor forward char - Right-Arrow
|
|
Packit |
f574b8 |
BACKW Cursor back word - Ctrl-P
|
|
Packit |
f574b8 |
FORWW Cursor forward word - Ctrl-N
|
|
Packit |
f574b8 |
BOL Go to begin of line - Ctrl-A, Home, Find
|
|
Packit |
f574b8 |
EOL Go to end of line - Ctrl-E, End, Select
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
DELP Delete prev char - Backspace, Delete, Remove
|
|
Packit |
f574b8 |
DELN Delete next char - Ctrl-D, Ctrl-R (
|
|
Packit |
f574b8 |
"#note_1">see note 1)
|
|
Packit |
f574b8 |
DELPW Delete prev word - Ctrl-B
|
|
Packit |
f574b8 |
DELNW Delete next word - Ctrl-F
|
|
Packit |
f574b8 |
DELEL Delete to end of line - Ctrl-_
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
UPPER Upper case the line - Ctrl-T
|
|
Packit |
f574b8 |
LOWER Lower case the line - Ctrl-K
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
LKCMD Invoke cmd prompt - Ctrl-V (in form text fields, only) (see note 2)
|
|
Packit |
f574b8 |
SWMAP Switch input keymap - Ctrl-^ (if compiled in)
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Keymap
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
These are special commands
|
|
Packit |
f574b8 |
for use only in textarea fields (see
|
|
Packit |
f574b8 |
note 3):
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Textarea external edit - Ctrl-X e
|
|
Packit |
f574b8 |
Insert file in textarea - Ctrl-X i
|
|
Packit |
f574b8 |
Grow textarea - Ctrl-X g
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
commands
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
TPOS Transpose characters - Ctrl-t
|
|
Packit |
f574b8 |
SETMARK Set mark at current position in line - Ctrl-@
|
|
Packit |
f574b8 |
XPMARK Exchange current position with mark - Ctrl-x Ctrl-x
|
|
Packit |
f574b8 |
KILLREG Kill region between mark and position - Ctrl-x Ctrl-w (see note 3)
|
|
Packit |
f574b8 |
YANK Insert text last killed (with KILLREG) - Ctrl-y
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Here is a little textarea for practice:
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
<form action="">
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
<textarea name="practice" cols="40" rows="5">
|
|
Packit |
f574b8 |
This text cannot be submitted. Normally lines like
|
|
Packit |
f574b8 |
these would be part of a form that is filled out and
|
|
Packit |
f574b8 |
then submitted. You can move around here and delete
|
|
Packit |
f574b8 |
or add text as you like, using the Line-Editor keys.
|
|
Packit |
f574b8 |
</textarea><input type="reset" value="[reset content]">
|
|
Packit |
f574b8 |
</form>
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
keys
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
<samp><dfn>Ctrl-</dfn>key means
|
|
Packit |
f574b8 |
Control+key.
|
|
Packit |
f574b8 |
<dfn>Ctrl-x </dfn> key means first
|
|
Packit |
f574b8 |
Control+x, then key.
|
|
Packit |
f574b8 |
<dfn>M-</dfn>key means Meta+key,
|
|
Packit |
f574b8 |
where Meta is a modifier that can be entered in a variety of
|
|
Packit |
f574b8 |
ways:</samp>
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
First ESC, then the key. This
|
|
Packit |
f574b8 |
does not work with all systems or on all connections, and if it
|
|
Packit |
f574b8 |
does may not work for some keys (because the ESC character is
|
|
Packit |
f574b8 |
also part of code sequences for "normal" function keys).
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Alt+key. This works if the
|
|
Packit |
f574b8 |
terminal, console, or comm program is set up to interpret Alt
|
|
Packit |
f574b8 |
as a modifier to send ESC. The Linux console acts like that by
|
|
Packit |
f574b8 |
default for most keys; Kermit can be set up to do it, xterm can
|
|
Packit |
f574b8 |
be for some keys, and so on. But the same caveats as for the
|
|
Packit |
f574b8 |
previous item apply. This Alt mapping may also be possible,
|
|
Packit |
f574b8 |
independent of the ESC character, for some keys in
|
|
Packit |
f574b8 |
Lynx for DOS/i386 or for Win32.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Ctrl-x key. Actually, currently
|
|
Packit |
f574b8 |
the same internal table is used for Meta and the Ctrl-x prefix.
|
|
Packit |
f574b8 |
Therefore all M-key combinations
|
|
Packit |
f574b8 |
can also be typed as Ctrl-x key,
|
|
Packit |
f574b8 |
and vice versa.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
A few key names may be less familiar now than when
|
|
Packit |
f574b8 |
Lynx was first written: Find,
|
|
Packit |
f574b8 |
Select and Remove. The
|
|
Packit |
f574b8 |
"https://invisible-island.net/xterm/xterm.faq.html#xterm_keypad">XTerm
|
|
Packit |
f574b8 |
FAQ shows some typical keypad layouts of emulators for VT220
|
|
Packit |
f574b8 |
and other DEC terminals.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
The VT220 did not have a “backspace” key but
|
|
Packit |
f574b8 |
Lynx's default bindings mention it. Both ASCII
|
|
Packit |
f574b8 |
<samp>BS</samp> (backspace) and <samp>DEL</samp> are bound by
|
|
Packit |
f574b8 |
default to the same functions. <samp>DEL</samp> (occasionally
|
|
Packit |
f574b8 |
referred to as <samp>RUBOUT</samp>) is not the same as
|
|
Packit |
f574b8 |
<samp>Delete</samp>: the former is a single character while the
|
|
Packit |
f574b8 |
latter is usually a sequence of characters.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
"next" means the character "under" a box or
|
|
Packit |
f574b8 |
underline style cursor; it means "to the immediate right of" an
|
|
Packit |
f574b8 |
I-beam (between characters) type cursor.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
Follow Ctrl-V with any recognized key command,
|
|
Packit |
f574b8 |
to "escape" from a text input field.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
For other key combinations using Ctrl-X as a
|
|
Packit |
f574b8 |
prefix key, see the Help page for the
|
|
Packit |
f574b8 |
"Bash-Like Binding" href=
|
|
Packit |
f574b8 |
"bashlike_edit_help.html">Bash-Like Binding.
|
|
Packit |
f574b8 |
|
|
Packit |
f574b8 |
</body>
|
|
Packit |
f574b8 |
</html>
|