News for hackers. Stuff that matters.
Re:Claude Code uses Bun written in Rust now by hellohello2 on Sunday July 19, 2026 @12:22PM (#48969463)
I'm confused as well, could someone who knows how TUIs work explain what's the point of React-style diffing in this context? I thought you need to clean and full redraw if anything changs anyways?
Re:Claude Code uses Bun written in Rust now by tredre3 on Sunday July 19, 2026 @01:07PM (#48969822)
> I thought you need to clean and full redraw if anything changs anyways?

Unless you use an ancient teletype, you don't have to redraw everything. That would make any interactive applications way too slow/flickery.

You can move the cursor arbitrarily in the terminal and start overwriting characters from there. So you need to track state to know what is "dirty" and needs refreshing. Occasionally you issue a full redraw to catch missed artifacts left behind or when the terminal is resized (SIGWINCH).

Re:Claude Code uses Bun written in Rust now by qudat on Sunday July 19, 2026 @12:39PM (#48969593)
You can do damage tracking for TUIs. Printing to the terminal is done by moving the cursor and redrawing the line the cursor is on.
Re:Claude Code uses Bun written in Rust now by delusional on Sunday July 19, 2026 @12:26PM (#48969489)
Ncurses is how people used to do it.