From b4d874addbef08898205b6017dcb6363ddefef32 Mon Sep 17 00:00:00 2001 From: Peter Keller Date: Sun, 28 May 2017 18:02:48 -0400 Subject: [PATCH 1/2] readline: numeric strings converted to integers in cursorTo --- doc/api/readline.md | 2 +- lib/readline.js | 20 +++++++++++++++----- test/parallel/test-readline-csi.js | 12 ++++++++++++ 3 files changed, 28 insertions(+), 6 deletions(-) diff --git a/doc/api/readline.md b/doc/api/readline.md index 136d0e63ceb81d..007b9cd517fb6f 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -439,7 +439,7 @@ added: v0.7.7 * `y` {number} The `readline.cursorTo()` method moves cursor to the specified position in a -given [TTY][] `stream`. +given [TTY][] `stream`. `x` and `y` can be numeric strings. ## readline.emitKeypressEvents(stream[, interface])