debugger: align message with Node.js standard

Node.js uses (or will use) _Ctrl+C_ with no spaces. To unify the
messages from inspect with other messages from the REPL and elsewhere,
make that change in node-inspect too.

PR-URL: https://github.com/nodejs/node/pull/38400
Backport-PR-URL: https://github.com/nodejs/node/pull/39446
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Rich Trott
2020-09-19 09:01:00 -07:00
committed by Richard Lau
parent d74d67f207
commit b30ff35a36
2 changed files with 3 additions and 3 deletions

View File

@@ -1008,7 +1008,7 @@ function createRepl(inspector) {
repl.setPrompt('> ');
print('Press Ctrl + C to leave debug repl');
print('Press Ctrl+C to leave debug repl');
repl.displayPrompt();
},
@@ -1080,7 +1080,7 @@ function createRepl(inspector) {
repl.on('reset', initializeContext);
repl.defineCommand('interrupt', () => {
// We want this for testing purposes where sending CTRL-C can be tricky.
// We want this for testing purposes where sending Ctrl+C can be tricky.
repl.emit('SIGINT');
});

View File

@@ -31,7 +31,7 @@ const assert = require('assert');
.then(() => {
assert.match(
cli.output,
/Press Ctrl \+ C to leave debug repl\n+> /,
/Press Ctrl\+C to leave debug repl\n+> /,
'shows hint for how to leave repl');
assert.doesNotMatch(cli.output, /debug>/, 'changes the repl style');
})