| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d642788 commit 86f2f83
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,7 +35,7 @@ feature set. | |||
| 35 | 35 | The following special commands are supported by all REPL instances: | |
| 36 | 36 | ||
| 37 | 37 | * `.break`: When in the process of inputting a multi-line expression, enter | |
| 38 | - the `.break` command (or press **Ctrl+C**) to abort | ||
| 38 | + the `.break` command (or press <kbd>Ctrl</kbd>+<kbd>C</kbd>) 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,8 @@ 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 (<kbd>Ctrl</kbd>+<kbd>D</kbd> to finish, | ||
| 49 | + <kbd>Ctrl</kbd>+<kbd>C</kbd> to cancel). | ||
| 49 | 50 | ||
| 50 | 51 | ```console | |
| 51 | 52 | > .editor | |
@@ -63,11 +64,12 @@ welcome('Node.js User'); | |||
| 63 | 64 | ||
| 64 | 65 | The following key combinations in the REPL have these special effects: | |
| 65 | 66 | ||
| 66 | - * **Ctrl+C**: When pressed once, has the same effect as the `.break` command. | ||
| 67 | + * <kbd>Ctrl</kbd>+<kbd>C</kbd>: When pressed once, has the same effect as the | ||
| 68 | + `.break` command. | ||
| 67 | 69 | When pressed twice on a blank line, has the same effect as the `.exit` | |
| 68 | 70 | command. | |
| 69 | - * **Ctrl+D**: Has the same effect as the `.exit` command. | ||
| 70 | - * `<tab>`: When pressed on a blank line, displays global and local (scope) | ||
| 71 | + * <kbd>Ctrl</kbd>+<kbd>D</kbd>: Has the same effect as the `.exit` command. | ||
| 72 | + * <kbd>Tab</kbd>: When pressed on a blank line, displays global and local (scope) | ||
| 71 | 73 | variables. When pressed while entering other input, displays relevant | |
| 72 | 74 | autocompletion options. | |
| 73 | 75 | ||
@@ -246,14 +248,15 @@ added: v13.6.0 | |||
| 246 | 248 | --> | |
| 247 | 249 | ||
| 248 | 250 | 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 | ||
| 251 | + triggered with <kbd>Ctrl</kbd>+<kbd>R</kbd> to search backward and | ||
| 252 | + <kbd>Ctrl</kbd>+<kbd>S</kbd> to search | ||
| 250 | 253 | forwards. | |
| 251 | 254 | ||
| 252 | 255 | Duplicated history entires will be skipped. | |
| 253 | 256 | ||
| 254 | 257 | Entries are accepted as soon as any button is pressed that doesn't correspond | |
| 255 | - with the reverse search. Cancelling is possible by pressing **Esc** or | ||
| 256 | - **Ctrl+C**. | ||
| 258 | + with the reverse search. Cancelling is possible by pressing <kbd>Esc</kbd> or | ||
| 259 | + <kbd>Ctrl</kbd>+<kbd>C</kbd>. | ||
| 257 | 260 | ||
| 258 | 261 | Changing the direction immediately searches for the next entry in the expected | |
| 259 | 262 | direction from the current position on. | |
@@ -379,8 +382,10 @@ added: v0.7.7 | |||
| 379 | 382 | --> | |
| 380 | 383 | ||
| 381 | 384 | 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 | ||
| 385 | + `.exit` command as input, the user pressing <kbd>Ctrl</kbd>+<kbd>C</kbd> twice | ||
| 386 | + to signal `SIGINT`, | ||
| 387 | + or by pressing <kbd>Ctrl</kbd>+<kbd>D</kbd> to signal `'end'` on the input | ||
| 388 | + stream. The listener | ||
| 384 | 389 | callback is invoked without any arguments. | |
| 385 | 390 | ||
| 386 | 391 | ```js | |
@@ -611,7 +616,8 @@ changes: | |||
| 611 | 616 | * `repl.REPL_MODE_STRICT` to evaluate expressions in strict mode. This is | |
| 612 | 617 | equivalent to prefacing every repl statement with `'use strict'`. | |
| 613 | 618 | * `breakEvalOnSigint` {boolean} Stop evaluating the current piece of code when | |
| 614 | - `SIGINT` is received, such as when `Ctrl+C` is pressed. This cannot be used | ||
| 619 | + `SIGINT` is received, such as when <kbd>Ctrl</kbd>+<kbd>C</kbd> is pressed. | ||
| 620 | + This cannot be used | ||
| 615 | 621 | together with a custom `eval` function. **Default:** `false`. | |
| 616 | 622 | * `preview` {boolean} Defines if the repl prints autocomplete and output | |
| 617 | 623 | previews or not. **Default:** `true` with the default eval function and | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -572,6 +572,14 @@ td > *:last-child { | |||
| 572 | 572 | margin-bottom: 0; | |
| 573 | 573 | } | |
| 574 | 574 | ||
| 575 | + kbd { | ||
| 576 | + font-size: 1.2em; | ||
| 577 | + font-weight: 700; | ||
| 578 | + border-radius: 3px; | ||
| 579 | + padding: 1px 2px 0; | ||
| 580 | + border: 1px solid black; | ||
| 581 | + } | ||
| 582 | + | ||
| 575 | 583 | .changelog > summary { | |
| 576 | 584 | margin: .5rem 0; | |
| 577 | 585 | padding: .5rem 0; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments