Skip to content

Commit 51fcb24

Browse files
committed
emit newline before REPL end
1 parent 3d4433f commit 51fcb24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/lips.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,10 @@ if (options.version || options.V) {
425425
prompt: prompt,
426426
terminal
427427
});
428+
rl.on('close', () => {
429+
rl.setPrompt('');
430+
process.stdout.write('\n');
431+
});
428432
const historySize = Number(env.LIPS_REPL_HISTORY_SIZE);
429433
if (!Number.isNaN(historySize) && historySize > 0) {
430434
rl.historySize = historySize;

0 commit comments

Comments
 (0)