nathanpeck / clui

Command Line UI toolkit for Node.js
MIT License
1.66k stars 40 forks source link

Cursor and Flicker on clear #19

Open 1Map opened 6 years ago

1Map commented 6 years ago

When I have a progress bar that update, I do:

clear(); // Redraw progress bar with new values here

My question is:

1) How to hide the cursor (toggle cursor on or off) 2) The clear/redraw is causing a flicker effect on the screen. How can this be prevented, like:

Rather use offset x/y positions to update characters, than to do a clear / redraw?