I love Claude Code, but how they made the TUI is just plain stupid. Not how it looks, but you know, the React part.
Building a TUI is easy now
121–130 of 262 posts
Re: Building a TUI is easy now
#122I don't see any real advantage of TUIs over web forms or GUIs for the same thing. I do like CLIs though, especially the ones that are properly capable of working in pipelines. Composing a pipeline of simple command-line utilities to achieve exactly what you want is very powerful.
Gemini made a lovely TUI for my C# project, but afterwards it said it could just spin up a Kestrel web server inside the app instead which would be a much better solution for managing it, which was fair. (I have a line in my Agents to warn me when I specify a way of building something and it's not the ideal solution)
And that helps? I tried that a while ago and it very often said this is not a good way of doing something even though it was objectively the best way of doing something. I removed it after a while because it was too random.
Re: Building a TUI is easy now
#123Re: Building a TUI is easy now
#124Looks great. Curious why not choose Rust and do extension of https://ratatui.rs/ ?
Re: Building a TUI is easy now
#125All of the skills I saw demonstrated were deterministic. So does this end in a Functional Core, Imperative Shell scenario that looks like a Terraform Plan and a search engine-style natural language processor out front?
Re: Building a TUI is easy now
#126Earlier quoted context omitted.
You're right - I'll remove that now until we can get it more performant or drop it altogether. This wasn't something we caught during testing. I appreciate the feedback!
While you are at it, it would be good, if the post was readable at all, without having to run JS on the page.
Re: Building a TUI is easy now
#127I think TUIs-that-want-to-be-GUIs (as opposed to terminal commands just outputting plain text) are sad. Mainly because they’re largely inaccessible. They flatten the structure of a UI under a character stream. You’re forced to use it exactly the way it was designed and no different. Modern GUIs, even web pages too, expose enough structure to the OS to let you use it more freely. I get why people build TUIs, but it’s…
They are GUIs --- just minecraft GUIs. One day, we will rediscover why GUI toolkits exist. The only real advantage TUIs have over GUIs is easy remoting, TBH. Maybe that's enough for people. Otherwise? They're just hair shirts.
Re: Building a TUI is easy now
#128Re: Building a TUI is easy now
#129Re: Building a TUI is easy now
#130I love Claude Code, but how they made the TUI is just plain stupid. Not how it looks, but you know, the React part.
If the render is already made in JavaScript it makes sense to reuse react as the reconciliation engine instead of building one from scratch.