Hacker News new | past | comments | ask | show | jobs | submit | billowycoat's comments login


That's impressive! Anyone know if there are similar libraries available for other languages?



https://github.com/charmbracelet/bubbletea is a nice TUI framework for Go.


This isn’t an issue if you use virtual environments. See also pipx for installing isolated Python apps.


See my sibling response(s).


The Textual project has a lot of screenshots in its documentation. These screenshots are built with the docs, so they are always up to date.

https://textual.textualize.io/


OnlyFans mostly. Except for the CEO who can photosynthesize enough energy to sustain himself.


Resource greedy?? It runs just fine on a Raspberry Pi.


Well Unicode text. But yes, it’s all text.


For a TUI though? A plain old terminal gives you next to nothing. Not even buttons or scroll bars.

A lean library will turn in to a framework if you decide to build anything more than a minimally complex app.

The widgets are conditional imports. If you don’t use the tree widget, it is never imported.


All widgets will be supported. Web version will be going in to Beta in a few weeks.


Awesome!

I'm imagining a workflow where textual can be used as a progressive enhancement for a cli tool, in case the user doesn't pass in all required flags. A web frontend for that view will make it more comfortable for even more types of users.... :)

python code_format.py --file app.js => textual isn't used/invoked at all

python code_format.py => textual is used to show user a DirectoryTree file dialog, then exits

I'm assuming this could work via "App" return values: app.exit({ file: "app.js" })

Do you have any examples of textual being used in this manner? If not, no worries


That’s pretty much what Textual is going. We will be beta testing soon.


There is an method to export the terminal as HTML. See https://rich.readthedocs.io/en/latest/reference/console.html...

Here is an example of the output https://rich.readthedocs.io/en/latest/appendix/colors.html


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: