Display more informative prompts in pdp11 command-line app

This commit is contained in:
Jeff Parsons 2016-12-30 15:05:46 -08:00 committed by Jeff Parsons
commit ed01885847

View file

@ -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,