@@ -34,8 +34,8 @@ feature set.
34
34
35
35
The following special commands are supported by all REPL instances:
36
36
37
- * ` .break ` : When in the process of inputting a multi-line expression, entering
38
- the ` .break ` command (or pressing the ` <ctrl>-C ` key combination) will abort
37
+ * ` .break ` : When in the process of inputting a multi-line expression, enter
38
+ the ` .break ` command (or press ** Ctrl+C ** ) to abort
39
39
further input or processing of that expression.
40
40
* ` .clear ` : Resets the REPL ` context ` to an empty object and clears any
41
41
multi-line expression being input.
@@ -45,7 +45,7 @@ The following special commands are supported by all REPL instances:
45
45
` > .save ./file/to/save.js `
46
46
* ` .load ` : Load a file into the current REPL session.
47
47
` > .load ./file/to/load.js `
48
- * ` .editor ` : Enter editor mode (` <ctrl>-D ` to finish, ` <ctrl>-C ` to cancel).
48
+ * ` .editor ` : Enter editor mode (** Ctrl+D ** to finish, ** Ctrl+C ** to cancel).
49
49
50
50
``` console
51
51
> .editor
@@ -63,10 +63,10 @@ welcome('Node.js User');
63
63
64
64
The following key combinations in the REPL have these special effects:
65
65
66
- * ` <ctrl>-C ` : When pressed once, has the same effect as the ` .break ` command.
66
+ * ** Ctrl+C ** : When pressed once, has the same effect as the ` .break ` command.
67
67
When pressed twice on a blank line, has the same effect as the ` .exit `
68
68
command.
69
- * ` <ctrl>-D ` : Has the same effect as the ` .exit ` command.
69
+ * ** Ctrl+D ** : Has the same effect as the ` .exit ` command.
70
70
* ` <tab> ` : When pressed on a blank line, displays global and local (scope)
71
71
variables. When pressed while entering other input, displays relevant
72
72
autocompletion options.
@@ -246,14 +246,14 @@ added: v13.6.0
246
246
-->
247
247
248
248
The REPL supports bi-directional reverse-i-search similar to [ ZSH] [ ] . It is
249
- triggered with ` <ctrl> + R ` to search backward and ` <ctrl> + S ` to search
250
- forward .
249
+ triggered with ** Ctrl+R ** to search backward and ** Ctrl+S ** to search
250
+ forwards .
251
251
252
252
Duplicated history entires will be skipped.
253
253
254
254
Entries are accepted as soon as any button is pressed that doesn't correspond
255
- with the reverse search. Cancelling is possible by pressing ` escape ` or
256
- ` <ctrl> + C ` .
255
+ with the reverse search. Cancelling is possible by pressing ** Esc ** or
256
+ ** Ctrl+C ** .
257
257
258
258
Changing the direction immediately searches for the next entry in the expected
259
259
direction from the current position on.
@@ -282,7 +282,7 @@ repl.start({ prompt: '> ', eval: myEval });
282
282
283
283
#### Recoverable errors
284
284
285
- As a user is typing input into the REPL prompt, pressing the ` <enter> ` key will
285
+ As a user is typing input into the REPL prompt, pressing ** Enter ** will
286
286
send the current line of input to the ` eval ` function. In order to support
287
287
multi-line input, the eval function can return an instance of ` repl.Recoverable `
288
288
to the provided callback function:
@@ -379,8 +379,8 @@ added: v0.7.7
379
379
-->
380
380
381
381
The ` 'exit' ` event is emitted when the REPL is exited either by receiving the
382
- ` .exit ` command as input, the user pressing ` <ctrl>-C ` twice to signal ` SIGINT ` ,
383
- or by pressing ` <ctrl>-D ` to signal ` 'end' ` on the input stream. The listener
382
+ ` .exit ` command as input, the user pressing ** Ctrl+C ** twice to signal ` SIGINT ` ,
383
+ or by pressing ** Ctrl+D ** to signal ` 'end' ` on the input stream. The listener
384
384
callback is invoked without any arguments.
385
385
386
386
``` js
0 commit comments