Is there anything in #Textual that makes you think "how the duck did they do that?"
I'm finally writing that blog post about the magic behind Textual, and I'm taking requests...
[#]Python
=> View attached media | View attached media
=> More informations about this toot | More toots from willmcgugan@mastodon.social
@willmcgugan I believe this isn't specifically a textual thing, but i do NOT understand how modern terminal apps can handle mouse input, seemingly like any GUI app, and what if any limitations there are around that.
=> More informations about this toot | More toots from masukomi@connectified.com
@masukomi In a nutshell apps can send a escape sequence that requests the terminal sends mouse input. Then mouse coordinates are sent encoded in stdin, which the app can read in the same way you read text input. The app will reset the mouse input when the app exits, so you never see it.
=> More informations about this toot | More toots from willmcgugan@mastodon.social
@willmcgugan that sounds surprisingly straightforward. Thanks.🙇♀️
=> More informations about this toot | More toots from masukomi@connectified.com This content has been proxied by September (3851b).Proxy Information
text/gemini