Display more informative prompts in pdp11 command-line app
This commit is contained in:
parent
4b345bb3d2
commit
ed01885847
1 changed files with 2 additions and 2 deletions
|
|
@ -492,9 +492,10 @@ function startInput()
|
||||||
stdin.setRawMode(false);
|
stdin.setRawMode(false);
|
||||||
stdin.pause();
|
stdin.pause();
|
||||||
if (buf[1] == 0x72) {
|
if (buf[1] == 0x72) {
|
||||||
|
console.log("alt-r detected, starting REPL...");
|
||||||
startREPL();
|
startREPL();
|
||||||
} else {
|
} else {
|
||||||
console.log("exiting...");
|
console.log("alt-x detected, exiting...");
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
@ -509,7 +510,6 @@ function startInput()
|
||||||
*/
|
*/
|
||||||
function startREPL()
|
function startREPL()
|
||||||
{
|
{
|
||||||
console.log("starting REPL...");
|
|
||||||
replServer = repl.start({
|
replServer = repl.start({
|
||||||
prompt: "PDP11> ",
|
prompt: "PDP11> ",
|
||||||
input: process.stdin,
|
input: process.stdin,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue