From ed01885847512ad560d73d67f55c0120f43bd7e9 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Fri, 30 Dec 2016 15:05:46 -0800 Subject: [PATCH] Display more informative prompts in pdp11 command-line app --- modules/pdp11/bin/pdp11 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/pdp11/bin/pdp11 b/modules/pdp11/bin/pdp11 index 6fadaa1ef..b1d1c31b9 100644 --- a/modules/pdp11/bin/pdp11 +++ b/modules/pdp11/bin/pdp11 @@ -492,9 +492,10 @@ function startInput() stdin.setRawMode(false); stdin.pause(); if (buf[1] == 0x72) { + console.log("alt-r detected, starting REPL..."); startREPL(); } else { - console.log("exiting..."); + console.log("alt-x detected, exiting..."); process.exit(); } return; @@ -509,7 +510,6 @@ function startInput() */ function startREPL() { - console.log("starting REPL..."); replServer = repl.start({ prompt: "PDP11> ", input: process.stdin,