finalize console object!
parent
e4273daa40
commit
47ef9548af
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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']);
|
||||
}
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
singleton;
|
||||
|
||||
restore {
|
||||
this.foo();
|
||||
}
|
||||
|
||||
foo {
|
||||
console.log('foo!');
|
||||
}
|
||||
Reference in New Issue