From 5276f03d49991959c3f9e6a9b152d4f94342749a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Nuno=20Monteiro?= Date: Fri, 19 May 2017 09:49:57 -0700 Subject: [PATCH] allow Lumo to continue executing after being placed in background fixes #166 --- CHANGELOG.md | 3 ++- src/js/repl.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65848e0b..0a2928a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ ### Bug fixes -- Fix regression that prevented requiring binary modules ([#163](https://github.com/anmonteiro/lumo/issues/163)). +- Fix regression that prevented requiring binary modules ([#163](https://github.com/anmonteiro/lumo/issues/163)). +- Fix bug that prevented Lumo from continuing executing after being put in background ([#166](https://github.com/anmonteiro/lumo/issues/166)). ## [1.5.0](https://github.com/anmonteiro/lumo/compare/1.4.1...1.5.0) (2017-05-13) diff --git a/src/js/repl.js b/src/js/repl.js index b4a8b679..edcaf743 100644 --- a/src/js/repl.js +++ b/src/js/repl.js @@ -283,6 +283,7 @@ export default function startREPL(opts: CLIOptsType): void { rl.on('line', (line: string) => processLine(session, line)); rl.on('SIGINT', () => handleSIGINT(session)); rl.on('close', () => stopREPL()); + rl.on('SIGCONT', () => rl.prompt()); lastKeypressTime = currentTimeMicros(); process.stdin.on('keypress', (c: string, key: KeyType) =>