| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3e0978d commit f636f15
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -573,7 +573,7 @@ function REPLServer(prompt, | |||
| 573 | 573 | sawSIGINT = false; | |
| 574 | 574 | return; | |
| 575 | 575 | } | |
| 576 | - self.output.write('(To exit, press ^C again or type .exit)\n'); | ||
| 576 | + self.output.write('(To exit, press ^C again or ^D or type .exit)\n'); | ||
| 577 | 577 | sawSIGINT = true; | |
| 578 | 578 | } else { | |
| 579 | 579 | sawSIGINT = false; | |
@@ -1428,6 +1428,8 @@ function defineDefaultCommands(repl) { | |||
| 1428 | 1428 | var line = `.${name}${cmd.help ? spaces + cmd.help : ''}\n`; | |
| 1429 | 1429 | this.outputStream.write(line); | |
| 1430 | 1430 | } | |
| 1431 | + this.outputStream.write('\nPress ^C to abort current expression, ' + | ||
| 1432 | + '^D to exit the repl\n'); | ||
| 1431 | 1433 | this.displayPrompt(); | |
| 1432 | 1434 | } | |
| 1433 | 1435 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,7 +45,7 @@ function run({ input, output, event, checkTerminalCodes = true }) { | |||
| 45 | 45 | const tests = [ | |
| 46 | 46 | { | |
| 47 | 47 | input: '', | |
| 48 | - output: '\n(To exit, press ^C again or type .exit)', | ||
| 48 | + output: '\n(To exit, press ^C again or ^D or type .exit)', | ||
| 49 | 49 | event: { ctrl: true, name: 'c' } | |
| 50 | 50 | }, | |
| 51 | 51 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -444,6 +444,8 @@ const errorTests = [ | |||
| 444 | 444 | /\.help/, | |
| 445 | 445 | /\.load/, | |
| 446 | 446 | /\.save/, | |
| 447 | + '', | ||
| 448 | + 'Press ^C to abort current expression, ^D to exit the repl', | ||
| 447 | 449 | /'thefourtheye'/ | |
| 448 | 450 | ] | |
| 449 | 451 | }, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments