prompt-sync
Advanced tools
Comparing version 4.1.5 to 4.1.6
@@ -16,2 +16,4 @@ 'use strict' | ||
// for ANSI escape codes reference see https://en.wikipedia.org/wiki/ANSI_escape_code | ||
function create(config) { | ||
@@ -224,4 +226,5 @@ | ||
} | ||
process.stdout.write('\u001b[u'); | ||
process.stdout.write('\u001b[1C'); | ||
// Reposition the cursor to the right of the insertion point | ||
process.stdout.write(`\u001b[${ask.length+1+(echo==''? 0:insert)}G`); | ||
} | ||
@@ -228,0 +231,0 @@ } |
{ | ||
"name": "prompt-sync", | ||
"version": "4.1.5", | ||
"version": "4.1.6", | ||
"description": "a synchronous prompt for node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
13694
250
6