Anatomy of a Textual User Interface
My bad 🤦
The date is wrong on this post—it was actually published on the 2nd of September 2024. I don't want to fix it, as that would break the URL.
I recently wrote a TUI to chat to an AI agent in the terminal. I'm not the first to do this (shout out to Elia and Paita), but I may be the first to have it reply as if it were the AI from the Aliens movies?
Here's a video of it in action:
Now let's dissect the code like Bishop dissects a facehugger.