From 47ef9548af2f703ed4f5526b2692893eed147cf2 Mon Sep 17 00:00:00 2001 From: Marcus Date: Mon, 17 May 2021 18:41:38 -0400 Subject: [PATCH] finalize console object! --- test/console.v | 4 ++-- test/main.v | 5 +---- test2/uhhh.v | 9 --------- 3 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 test2/uhhh.v diff --git a/test/console.v b/test/console.v index 6040c82..0c5110c 100644 --- a/test/console.v +++ b/test/console.v @@ -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 diff --git a/test/main.v b/test/main.v index e6a19ee..3670586 100644 --- a/test/main.v +++ b/test/main.v @@ -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']); } \ No newline at end of file diff --git a/test2/uhhh.v b/test2/uhhh.v deleted file mode 100644 index 717c876..0000000 --- a/test2/uhhh.v +++ /dev/null @@ -1,9 +0,0 @@ -singleton; - -restore { - this.foo(); -} - -foo { - console.log('foo!'); -} \ No newline at end of file