-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.
Description
- Version: from
v6.6.0
- Platform: mostly Windows
- Subsystem: readline
Recently, I've got a complaint that some of my old scripts for a line by line processing of big files add unexpected new lines. The cause seems to be similar to the one described in this OP.
I suggest two variants of precaution:
-
Add a small note to the doc + set
crlfDelay
toInfinity
in our main file stream example. This change is milder, but it is also a bit confusing and makes thefs
example look like a workaround or even an abuse of terminal API. -
Automatically set
crlfDelay
toInfinity
whenterminal
isfalse
or even completely remove this check from._normalWrite()
. Is there any reason for this option infs
use cases?
Metadata
Metadata
Assignees
Labels
readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.