Base readline (doesn't run)
This commit is contained in:
parent
025dbf0ebb
commit
b938ce9a40
|
@ -4,3 +4,16 @@ export const rl = readline.createInterface({
|
||||||
input: process.stdin,
|
input: process.stdin,
|
||||||
output: process.stdout
|
output: process.stdout
|
||||||
});
|
});
|
||||||
|
|
||||||
|
rl.setPrompt("mpps> ");
|
||||||
|
|
||||||
|
rl.prompt();
|
||||||
|
|
||||||
|
rl.on("line", msg => {
|
||||||
|
// TODO readline commands
|
||||||
|
rl.prompt();
|
||||||
|
});
|
||||||
|
|
||||||
|
rl.on("SIGINT", () => {
|
||||||
|
process.exit();
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue