Ancestors

Toot

Written by Will McGugan on 2024-12-07 at 16:54

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

Descendants

Written by masukomi on 2024-12-07 at 16:56

@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

Written by Will McGugan on 2024-12-07 at 17:01

@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

Written by masukomi on 2024-12-07 at 17:25

@willmcgugan that sounds surprisingly straightforward. Thanks.🙇‍♀️

=> More informations about this toot | More toots from masukomi@connectified.com

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113612586236635384
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
271.565477 milliseconds
Gemini-to-HTML Time
0.697121 milliseconds

This content has been proxied by September (3851b).