3 ms·
> unless you have React-like UI diff-ing library, it's gonna be a costly entire screen redraw event for the most simple update. He's using ncurses, which actu
by DSMan195276 9y ago
> unless you have React-like UI diff-ing library, it's gonna be a costly entire screen redraw event for the most simple update.
He's using ncurses, which actually does that - it only redraws the parts of the screen that change. It can require a bit of coxing at times to ensure that things get redrawn properly but I'm pretty sure he's good - I didn't see anything in his code that would force a full redraw every update.
- radarsat1 9y ago> He's using ncurses, which actually does that - it only redraws the parts of the screen that change. Heh, when I first read about React, my immediate reaction was like, "oh so it's like ncurses for the web, cool, makes sense."