3 ms·
See also: "Textual: lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a we
by blamazon 3y ago
See also:
"Textual: lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser." [1]
[1]: https://github.com/textualize/textual/ https://github.com/textualize/textual/
- dgellow 3y agoWow, how is that even possible? The terminal examples are way more detailed than I would have imagined possible.
- tayo42 3y agoYeah that's interesting. I didn't think handling mouse clicks was possible. Wonder how it's done.
- eichin 3y agofor most xterm-compatible terminals, you send an escape sequence that enables mouse tracking, and then mouse clicks turn into escape sequences.
- tayo42 3y agoThat's cool! Thanks
- joombaga 3y agoA lot of popular terminal apps support mouse clicks. Off the top of my head vim, emacs, htop, and links2 all have mouse support.
- acaloiar 3y agoAdding Textual support to camply [1] was apparently very easy. I didn't to the implementation; I just contribute to the project sometimes: https://juftin.com/camply/command_line_usage/#tui https://juftin.com/camply/command_line_usage/#tui [1] https://juftin.com/camply/ https://juftin.com/camply/
- asicsp 3y agoThey have something similar to Gooey as well: https://github.com/Textualize/trogon https://github.com/Textualize/trogon "Easily turn your Click CLI into a powerful terminal application"