Textual is a TUI framework for Python, inspired by modern web development.| Textual Documentation
Textual has come a long way since I figured why not build an application framework on top of Rich. Both were initially hobby projects. I mean look how much fun I was having back then:| Textual
Smoother scrolling in the terminal — a feature decades in the making The great philosopher F. Bueller once said “Life moves pretty fast. If you don't stop and look around once in a while, you could miss it.” Beuller was not taking about terminals, which tend not to move very fast at all.Until they do.From time to time terminals acquire new abilities after a long plateau.We are now seeing a kind of punctuated evolution in terminals which makes things possible that just weren't feasible a...| Textual
I've had the fortune of being able to work fulltime on a FOSS project for the last three plus years. --8<-- "docs/blog/images/textual-demo.svg" Textual has been a constant source of programming challenges.Often frustrating but never boring, the challenges arise because the terminal "specification" says nothing about how to build a modern User Interface.The building blocks are there: after some effort you can move the cursor, write colored text, read keys and mouse movements, but that's about ...| Textual
Anatomy of a Textual User Interface !!! note "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 face...| Textual
In this post we'll look at some new functionality available in Textual apps accessed via a browser and how it helps provide a more equal experience across platforms.| Textual
Behind the Curtain of Inline Terminal Applications Textual recently added the ability to run inline terminal apps.You can see this in action if you run the calculator example: The application appears directly under the prompt, rather than occupying the full height of the screen—which is more typical of TUI applications.You can interact with this calculator using keys or the mouse.When you press ++ctrl+q++ the calculator disappears and returns you to the prompt. Here's another app that creat...| Textual
Remote memory profiling with Memray Memray is a memory profiler for Python, built by some very smart devs at Bloomberg.It is a fantastic tool to identify memory leaks in your code or other libraries (down to the C level)! They recently added a Textual interface which looks amazing, and lets you monitor your process right from the terminal:| Textual
File magic with the Python standard library I recently published Toolong, an app for viewing log files.There were some interesting technical challenges in building Toolong that I'd like to cover in this post.| Textual
Announcing textual-plotext It's no surprise that a common question on the Textual Discordserver is how to go about producing plots inthe terminal. A popular solution that has been suggested isPlotext. While Plotext doesn'tdirectly support Textual, it is easy to use withRichand, because of this, we wanted to make it just as easy to use in yourTextual applications.| Textual
Textual 0.38.0 adds a syntax aware TextArea This is the second big feature release this month after last week's command palette.| Textual
Textual 0.37.0 adds a command palette Textual version 0.37.0 has landed!The highlight of this release is the new command palette.| Textual