File tree 1 file changed +2
-9
lines changed
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -289,13 +289,7 @@ function REPLServer(prompt,
289
289
if ( ! err ) {
290
290
// Unset raw mode during evaluation so that Ctrl+C raises a signal.
291
291
let previouslyInRawMode ;
292
-
293
- // Temporarily disabled on Windows due to output problems that likely
294
- // result from the raw mode switches here, see
295
- // https://github.com/nodejs/node/issues/7837
296
- // Setting NODE_REPL_CTRLC is meant as a temporary opt-in for debugging.
297
- if ( self . breakEvalOnSigint &&
298
- ( process . platform !== 'win32' || process . env . NODE_REPL_CTRLC ) ) {
292
+ if ( self . breakEvalOnSigint ) {
299
293
// Start the SIGINT watchdog before entering raw mode so that a very
300
294
// quick Ctrl+C doesn’t lead to aborting the process completely.
301
295
utilBinding . startSigintWatchdog ( ) ;
@@ -315,8 +309,7 @@ function REPLServer(prompt,
315
309
result = script . runInContext ( context , scriptOptions ) ;
316
310
}
317
311
} finally {
318
- if ( self . breakEvalOnSigint &&
319
- ( process . platform !== 'win32' || process . env . NODE_REPL_CTRLC ) ) {
312
+ if ( self . breakEvalOnSigint ) {
320
313
// Reset terminal mode to its previous value.
321
314
self . _setRawMode ( previouslyInRawMode ) ;
322
315
You can’t perform that action at this time.
0 commit comments