/usr/share/doc/ne/html/The-Input-Line.html is in ne-doc 2.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <html lang="en">
<head>
<title>The Input Line - ne's manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="ne's manual">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Reference.html#Reference" title="Reference">
<link rel="prev" href="The-Status-Bar.html#The-Status-Bar" title="The Status Bar">
<link rel="next" href="The-Command-Line.html#The-Command-Line" title="The Command Line">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="The-Input-Line"></a>
<p>
Next: <a rel="next" accesskey="n" href="The-Command-Line.html#The-Command-Line">The Command Line</a>,
Previous: <a rel="previous" accesskey="p" href="The-Status-Bar.html#The-Status-Bar">The Status Bar</a>,
Up: <a rel="up" accesskey="u" href="Reference.html#Reference">Reference</a>
<hr>
</div>
<h3 class="section">3.3 The Input Line</h3>
<p><a name="index-Input-line-61"></a><a name="index-Escaping-an-input-62"></a><a name="index-Immediate-input-63"></a><a name="index-Long-input-64"></a><a name="index-File-name-completion-65"></a>
The bottom line of the screen is usually occupied by the status bar
(see <a href="The-Status-Bar.html#The-Status-Bar">The Status Bar</a>). However, whenever <code>ne</code> prompts you for a
command or file name or asks you to confirm some action, the bottom line
becomes the <dfn>input line</dfn>. You can see this because a <dfn>prompt</dfn> is
displayed at the start of the line, suggesting what kind of input is
required. (Prompts always ends with a colon, so it is easy to
distinguish them from <dfn>error messages</dfn>, which overwrite the status
line from time to time.)
<p><code>ne</code> uses the input line in two essentially different ways:
<dfn>immediate</dfn> input and <dfn>long</dfn> input. You can easily distinguish
between these two modes because in immediate input mode the cursor is
not on the input line, while for long input mode it is.
<p>Immediate input is used whenever <code>ne</code> needs you to specify a simple
choice that can be expressed by one character (for example, ‘<samp><span class="samp">y</span></samp>’ or
‘<samp><span class="samp">n</span></samp>’). When you type the character, <code>ne</code> will immediately
accept and use your input. Most immediate inputs display a character
just after the prompt. This character is the default response, which is
used if you just press the <Return> key. Note that immediate input
is not case sensitive. Moreover, if a yes/no choice is requested,
<em>anything</em> other than ‘<samp><span class="samp">y</span></samp>’ will be considered a negative
response.
<p>Long input is used when a whole string is required. You can enter and
edit your response to long inputs like a line of text in a
document. Most key bindings related to line editing work on the command
line exactly as they do in a document. This is true even of custom key
bindings. Just edit as you are used to. Moreover, the you can paste the
first line of the current clip using the keystroke that is bound to the
<code>Paste</code> command, usually <kbd><Control>-V</kbd>. If your long input
is longer than the screen width, the input line scrolls to accommodate
your text so you can input very long lines even on small
monitors. (There is a limit of 2048 characters.)
<p>The default response to a long input is the response you gave to the
previous long input. Your <em>first action</em> when presented with a long
input will either erase the default response or allow you to edit it. If
the first thing you type is a printing character, the default response
will be erased. Anything else (cursor movement for example) will allow
you to edit it further.
<p>Long input also lets you access your previous long input responses with
the up and down cursor commands (or with wider movement commands, such
as start/end of file, page up/down, etc.). Once you find a previous
input you like, you can edit it further. Long input history is not
document specific, so you can recall any of your inputs regardless of
which document was active when you entered it. Furthermore, <code>ne</code>
saves the most recent long inputs in <samp><span class="file">~/.ne/.history</span></samp> when you end
your <code>ne</code> session and loads them again when you begin another
<code>ne</code> session.
<p>When asked to input a number, you can choose between decimal, octal and
hexadecimal notation in the standard way: a number starting with
‘<samp><span class="samp">0</span></samp>’ is considered in octal, a number starting with ‘<samp><span class="samp">0x</span></samp>’ is
considered in hexadecimal, and in all other cases decimal base is
assumed.
<p>Whenever a file name is requested, you can type a partial file name and
<dfn>complete</dfn> it with the <Tab> key. <code>ne</code> will scan the
current directory (or the directory that you partially specified) and
search for the files matching your partial suggestion. The longest
prefix common to all such files will be copied on the input line
(<code>ne</code> will beep if no completion exists). It's easier done than
said—just try. If you press <Tab> again, you will be brought into
the file requester: only the files and directories matching your partial
specification will appear, and as usual you will be able to navigate and
select a file or escape. See <a href="The-Requester.html#The-Requester">The Requester</a>. Note that <code>ne</code>
considers the <em>last word</em> on the input line the partial file name
to complete, no matter where the cursor is currently (you must use quotes
if the name contains spaces, even if it is the only item on the input line).
<p>Complete long input with the <Return> key. You can cancel a long
input using <f1>, <Escape>, <Escape>-<Escape> or any key
that is bound to the <code>Escape</code> command. The effect will vary depending
on what your were requested to input, but the execution of the command
requiring the input will stop.
</body></html>
|