diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/list-scroll-form.js | 2 |
1 files changed, 2 insertions, 0 deletions
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) |