Skip to content

Commit eb931ad

Browse files
committed
repl: update the cursor logic in kGetDisplayPos instead of getCursorPos
1 parent b41273a commit eb931ad

9 files changed

Lines changed: 184 additions & 145 deletions

File tree

doc/api/repl.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,8 @@ The `replServer.displayPrompt()` method readies the REPL instance for input
605605
from the user, printing the configured `prompt` to a new line in the `output`
606606
and resuming the `input` to accept new input.
607607

608-
When multi-line input is being entered, an ellipsis is printed rather than the
609-
'prompt'.
608+
When multi-line input is being entered, the "|" character is printed rather
609+
than the 'prompt'.
610610

611611
When `preserveCursor` is `true`, the cursor placement will not be reset to `0`.
612612

@@ -657,6 +657,12 @@ A list of the names of all Node.js modules, e.g., `'http'`.
657657
<!-- YAML
658658
added: v0.1.91
659659
changes:
660+
- version: REPLACEME
661+
pr-url: https://github.com/nodejs/node/pull/57400
662+
description: The multi-line indicator is now "|" instead of "...".
663+
Added support for multi-line history.
664+
It is now possible to "fix" multi-line commands with syntax errors
665+
by visiting the history and editing the command.
660666
- version:
661667
- v13.4.0
662668
- v12.17.0

0 commit comments

Comments
 (0)