logoalt Hacker News

EMM_386today at 1:43 AM3 repliesview on HN

The problem is they are using the Ink library which clears and redraws for each update.

https://github.com/anthropics/claude-code/issues/769

I locally patched the closed-source CLI npm package but it's not perfect. They would have to switch how their TUI is rendered on their side.

Apparently OpenAI Codex is rust+ratatui which does not have this issue.


Replies

thomasahletoday at 2:00 AM

I'm always surprised that Python doesn't have as good TUI libraries as Javascript or Rust. With the amount of CLI tooling written in Python, you'd think it had better libraries than any other language.

show 3 replies
jschlattertoday at 2:15 AM

They started with Ink but have since switched to their own renderer:

> We originally built Claude Code on Ink, a React renderer for the terminal. [...] Over the past few months, we've rewritten our rendering system from scratch (while still using React).

https://github.com/anthropics/claude-code/issues/769#issueco...

show 2 replies
behnamohtoday at 1:44 AM

then maybe they should've bought and fixed Ink instead of bun, just saying!

show 1 reply