mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
@@ -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');
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user