summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRaoof <raoofhb@gmail.com>2018-04-04 00:00:35 +0430
committerJames M Snell <jasnell@gmail.com>2018-10-25 15:19:02 -0700
commitc82920214bc03857061b47fe6bee3b21933eabe8 (patch)
treed78bdf2f3e8fd75037d34bd5473738f51925fb22 /doc
parent246a6fc1078ae3ef257169847704dd8db4122095 (diff)
downloadandroid-node-v8-c82920214bc03857061b47fe6bee3b21933eabe8.tar.gz
android-node-v8-c82920214bc03857061b47fe6bee3b21933eabe8.tar.bz2
android-node-v8-c82920214bc03857061b47fe6bee3b21933eabe8.zip
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')
-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 ccc9ee92fe..3d00e4ec64 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.