finalize console object!

sdl
Marcus 2021-05-17 18:41:38 -04:00
parent e4273daa40
commit 47ef9548af
3 changed files with 3 additions and 15 deletions

View File

@ -11,7 +11,7 @@ restore {
process.exit(2);
}
});
console.log(this);
this.write(ansi.cursor.hide);
}
@ -38,7 +38,7 @@ choice(message, choices, type) {
terminal.singleColumnMenu(choices, (error, response) => {
// terminal.restoreCursor();
this.write(ansi.cursor.left + ansi.cursor.up(2 + response.selectedIndex));
this.write(ansi.cursor.left + ansi.cursor.up(4 + response.selectedIndex));
terminal.cyan(`${message} `);
terminal.grabInput(false);
// terminal.move

View File

@ -4,10 +4,7 @@ link currentSave;
async restore {
console.log('~ Welcome to Vogue ~');
// process.stdout.write('&'.repeat(80) + '\n');
// process.stdout.write(JSON.stringify(console, null, 2))
// this.currentSave ??= create('world', {});
// console.log(Interface);
// console.log(console);
this.currentSave ??= create('world', {});
const choice = await console.choice('select a thing', ['a', 'b', 'c']);
}

View File

@ -1,9 +0,0 @@
singleton;
restore {
this.foo();
}
foo {
console.log('foo!');
}