Base readline (doesn't run)

This commit is contained in:
Hri7566 2023-09-09 01:38:17 -04:00
parent 025dbf0ebb
commit b938ce9a40
1 changed files with 13 additions and 0 deletions

View File

@ -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();
});