Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaoof <raoofhb@gmail.com>2018-04-03 22:30:35 +0300
committerJames M Snell <jasnell@gmail.com>2018-10-26 01:19:02 +0300
commitc82920214bc03857061b47fe6bee3b21933eabe8 (patch)
treed78bdf2f3e8fd75037d34bd5473738f51925fb22 /doc/api/readline.md
parent246a6fc1078ae3ef257169847704dd8db4122095 (diff)
lib: add escapeCodeTimeout as an option to createInterface
PR-URL: https://github.com/nodejs/node/pull/19780 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/api/readline.md')
-rw-r--r--doc/api/readline.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api/readline.md b/doc/api/readline.md
index ccc9ee92fe4..3d00e4ec643 100644
--- a/doc/api/readline.md
+++ b/doc/api/readline.md
@@ -375,6 +375,11 @@ changes:
* `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`.
+ * `escapeCodeTimeout` {number} The duration `readline` will wait for a
+ character (when reading an ambiguous key sequence in milliseconds one that
+ can both form a complete key sequence using the input read so far and can
+ take additional input to complete a longer key sequence).
+ **Default:** `500`.
The `readline.createInterface()` method creates a new `readline.Interface`
instance.