summaryrefslogtreecommitdiff
path: root/doc/api/readline.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/readline.md')
-rw-r--r--doc/api/readline.md22
1 files changed, 12 insertions, 10 deletions
diff --git a/doc/api/readline.md b/doc/api/readline.md
index 69c49b10ea..2d6731ddb2 100644
--- a/doc/api/readline.md
+++ b/doc/api/readline.md
@@ -350,24 +350,26 @@ changes:
-->
* `options` {Object}
- * `input` {stream.Readable} The [Readable][] stream to listen to. This option is
- *required*.
- * `output` {stream.Writable} The [Writable][] stream to write readline data to.
+ * `input` {stream.Readable} The [Readable][] stream to listen to. This option
+ is *required*.
+ * `output` {stream.Writable} The [Writable][] stream to write readline data
+ to.
* `completer` {Function} An optional function used for Tab autocompletion.
* `terminal` {boolean} `true` if the `input` and `output` streams should be
treated like a TTY, and have ANSI/VT100 escape codes written to it.
Defaults to checking `isTTY` on the `output` stream upon instantiation.
* `historySize` {number} Maximum number of history lines retained. To disable
- the history set this value to `0`. This option makes sense only if `terminal`
- is set to `true` by the user or by an internal `output` check, otherwise the
- history caching mechanism is not initialized at all. **Default:** `30`
+ the history set this value to `0`. This option makes sense only if
+ `terminal` is set to `true` by the user or by an internal `output` check,
+ otherwise the history caching mechanism is not initialized at all.
+ **Default:** `30`
* `prompt` {string} The prompt string to use. **Default:** `'> '`
* `crlfDelay` {number} If the delay between `\r` and `\n` exceeds
`crlfDelay` milliseconds, both `\r` and `\n` will be treated as separate
- end-of-line input. `crlfDelay` will be coerced to a number no less than `100`.
- It can be set to `Infinity`, in which case `\r` followed by `\n` will always be
- considered a single newline (which may be reasonable for [reading files][]
- with `\r\n` line delimiter). **Default:** `100`
+ end-of-line input. `crlfDelay` will be coerced to a number no less than
+ `100`. It can be set to `Infinity`, in which case `\r` followed by `\n`
+ will always be considered a single newline (which may be reasonable for
+ [reading files][] with `\r\n` line delimiter). **Default:** `100`
* `removeHistoryDuplicates` {boolean} If `true`, when a new input line added
to the history list duplicates an older one, this removes the older line
from the list. **Default:** `false`