From b087c428ba492715626a7875185f9ba18fb30b3e Mon Sep 17 00:00:00 2001 From: liam4 Date: Mon, 3 Jul 2017 21:13:50 -0300 Subject: Improve cursor display - Whether the cursor is displayed or not is now based on the cursorVisible property rather than whether cursorX and cursorY are set or not. - The actual shell cursor is now invisible... this is objectively an act of Evil, though! This doesn't look like too hard to fix, thankfully. - A new cleanCursor function has been added to ansi.js. --- examples/list-scroll-form.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/list-scroll-form.js b/examples/list-scroll-form.js index a68cb78..cb7fa27 100644 --- a/examples/list-scroll-form.js +++ b/examples/list-scroll-form.js @@ -13,6 +13,7 @@ interfacer.getScreenSize().then(size => { const list = new ListScrollForm() root.addChild(list) + list.x = 2 list.y = 2 list.w = root.contentW - 4 @@ -23,6 +24,7 @@ interfacer.getScreenSize().then(size => { list.addInput(button) button.on('pressed', () => { + process.stdout.write(ansi.cleanCursor()) process.stdout.write(ansi.clearScreen()) console.log(item) process.exit(0) -- cgit 1.3.0-6-gf8a5