* [9fans] Why does rio deliver resize events through the mouse file?
@ 2025-12-06 14:34 ewpert via 9fans
2025-12-06 16:46 ` ron minnich
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ewpert via 9fans @ 2025-12-06 14:34 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 487 bytes --]
Why resize events in rio are delivered through the mouse file? This feels a bit unintuitive. I wasn’t planning to open or read from the mouse device in my program at all, but it seems I have to, because that's the only way to receive resize notifications.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te26c720bdaa1a854-M739fabead1c8a34666484761
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 1004 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [9fans] Why does rio deliver resize events through the mouse file?
2025-12-06 14:34 [9fans] Why does rio deliver resize events through the mouse file? ewpert via 9fans
@ 2025-12-06 16:46 ` ron minnich
2025-12-06 20:00 ` Rodrigo G. López
2025-12-06 20:58 ` [9fans] " Alyssa M via 9fans
2 siblings, 0 replies; 4+ messages in thread
From: ron minnich @ 2025-12-06 16:46 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]
What would you do differently?
The code is there, change at will, and see if it works better for you
On Sat, Dec 6, 2025 at 7:39 AM ewpert via 9fans <9fans@9fans.net> wrote:
> Why resize events in rio are delivered through the mouse file? This feels
> a bit unintuitive. I wasn’t planning to open or read from the mouse device
> in my program at all, but it seems I have to, because that's the only way
> to receive resize notifications.
>
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/Te26c720bdaa1a854-M739fabead1c8a34666484761>
>
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te26c720bdaa1a854-M42d333b5379a33778c2b51c8
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 1530 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] Why does rio deliver resize events through the mouse file?
2025-12-06 14:34 [9fans] Why does rio deliver resize events through the mouse file? ewpert via 9fans
2025-12-06 16:46 ` ron minnich
@ 2025-12-06 20:00 ` Rodrigo G. López
2025-12-06 20:58 ` [9fans] " Alyssa M via 9fans
2 siblings, 0 replies; 4+ messages in thread
From: Rodrigo G. López @ 2025-12-06 20:00 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]
it's not rio(4) but mouse(3) itself that generates these events. it also
controls other screen-related functionality like blanking.
this used to be handled by an actual terminal (the jerq/blot aka DMD-5620)
and the interfaces probably evolved from that.
cheers!
-rodri
On Sat, Dec 6, 2025, 16:39 ewpert via 9fans <9fans@9fans.net> wrote:
> Why resize events in rio are delivered through the mouse file? This feels
> a bit unintuitive. I wasn’t planning to open or read from the mouse device
> in my program at all, but it seems I have to, because that's the only way
> to receive resize notifications.
>
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/Te26c720bdaa1a854-M739fabead1c8a34666484761>
>
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te26c720bdaa1a854-M2b93618e1a2ab2562b343d68
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 1798 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [9fans] Re: Why does rio deliver resize events through the mouse file?
2025-12-06 14:34 [9fans] Why does rio deliver resize events through the mouse file? ewpert via 9fans
2025-12-06 16:46 ` ron minnich
2025-12-06 20:00 ` Rodrigo G. López
@ 2025-12-06 20:58 ` Alyssa M via 9fans
2 siblings, 0 replies; 4+ messages in thread
From: Alyssa M via 9fans @ 2025-12-06 20:58 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
You could read /dev/wctl, which returns this and other window status.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te26c720bdaa1a854-Mae22670269b7b57392f63228
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
[-- Attachment #2: Type: text/html, Size: 791 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-12-07 0:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-06 14:34 [9fans] Why does rio deliver resize events through the mouse file? ewpert via 9fans
2025-12-06 16:46 ` ron minnich
2025-12-06 20:00 ` Rodrigo G. López
2025-12-06 20:58 ` [9fans] " Alyssa M via 9fans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).