Re: [9fans] a very silly program

2010-06-05 Thread Johnny
Hello, just wanted to know if i got my logic right ;) On Fri, 4 Jun 2010 13:31:57 -0700 ron minnich wrote: > On Fri, Jun 4, 2010 at 1:22 PM, EBo wrote: > > > When I first tried this I started up 9vx without rio, ran catmouse > > at a windowless command prompt, and then ran rio and it did not

Re: [9fans] a very silly program

2010-06-04 Thread ron minnich
On Fri, Jun 4, 2010 at 3:06 PM, Federico G. Benavento wrote: > what about just using pipefile(1) and a filter > like accupoint(1) does it was partly just to get my brain to get the hang of what it takes to interpose a trivial file system between /dev/mouse and rio. ron

Re: [9fans] a very silly program

2010-06-04 Thread Federico G. Benavento
what about just using pipefile(1) and a filter like accupoint(1) does On Fri, Jun 4, 2010 at 12:34 PM, ron minnich wrote: > http://bitbucket.org/rminnich/plan9tools/src/tip/catmouse.c > > I sort of wanted to learn what it would take to interpose a program > between /dev/mouse and something else.

Re: [9fans] a very silly program

2010-06-04 Thread EBo
>> Well, without reading the code I would guess that you do not have a >> device >> (or service) connected to the mouse until a window manager is started. >>  It >> is also even  likely a problem with what is set in the namespaces. > > well, can't I get any of you folks to figure it out using rat

Re: [9fans] a very silly program

2010-06-04 Thread ron minnich
On Fri, Jun 4, 2010 at 1:39 PM, EBo wrote: > >>> When I first tried this I started up 9vx without rio, ran catmouse at a >>> windowless command prompt, and then ran rio and it did not work >>> correctly. >>> Maybe this is not what Ron intended, but this is what worked for me... >> >> bonus points

Re: [9fans] a very silly program

2010-06-04 Thread EBo
>> When I first tried this I started up 9vx without rio, ran catmouse at a >> windowless command prompt, and then ran rio and it did not work >> correctly. >> Maybe this is not what Ron intended, but this is what worked for me... > > bonus points for why that did not work ;-) Well, without readi

Re: [9fans] a very silly program

2010-06-04 Thread ron minnich
On Fri, Jun 4, 2010 at 1:22 PM, EBo wrote: > When I first tried this I started up 9vx without rio, ran catmouse at a > windowless command prompt, and then ran rio and it did not work correctly. > Maybe this is not what Ron intended, but this is what worked for me... bonus points for why that did

Re: [9fans] a very silly program

2010-06-04 Thread EBo
On Fri, 4 Jun 2010 10:04:34 -0700, David Leimbach wrote: > On Fri, Jun 4, 2010 at 9:42 AM, ron minnich wrote: > >> On Fri, Jun 4, 2010 at 8:55 AM, Francisco J Ballesteros >> wrote: >> > mousefs is another example. >> > I think I placed it in sources. >> > It's used here to redirect mice to othe

Re: [9fans] a very silly program

2010-06-04 Thread erik quanstrom
> i am adding a feature to tippi to create a thumbnail of /dev/screen > and mark the mouse location in the thumbnail. i had planned to use > resample to create it but it is slow and doesn't seem to correct for > color (color is intensified). there might be a better way too. i've been using richa

Re: [9fans] a very silly program

2010-06-04 Thread Skip Tavakkolian
there's also /n/sources/contrib/fst/tippi.c i am adding a feature to tippi to create a thumbnail of /dev/screen and mark the mouse location in the thumbnail. i had planned to use resample to create it but it is slow and doesn't seem to correct for color (color is intensified). there might be a b

Re: [9fans] a very silly program

2010-06-04 Thread David Leimbach
Huh... I'll play around with it and see what's up :-) On Fri, Jun 4, 2010 at 11:13 AM, ron minnich wrote: > well maybe it's broke. What it's supposed to do is make it impossible > to put your mouse in the middle of the window ... works in 9vx > > ron > >

Re: [9fans] a very silly program

2010-06-04 Thread ron minnich
well maybe it's broke. What it's supposed to do is make it impossible to put your mouse in the middle of the window ... works in 9vx ron

Re: [9fans] a very silly program

2010-06-04 Thread David Leimbach
On Fri, Jun 4, 2010 at 9:42 AM, ron minnich wrote: > On Fri, Jun 4, 2010 at 8:55 AM, Francisco J Ballesteros > wrote: > > mousefs is another example. > > I think I placed it in sources. > > It's used here to redirect mice to other Plan 9s. > > That's how it always works, I write something and fo

Re: [9fans] a very silly program

2010-06-04 Thread ron minnich
On Fri, Jun 4, 2010 at 8:55 AM, Francisco J Ballesteros wrote: > mousefs is another example. > I think I placed it in sources. > It's used here to redirect mice to other Plan 9s. That's how it always works, I write something and found out someone else wrote it :-) but catmouse is a bit psycho, y

Re: [9fans] a very silly program

2010-06-04 Thread Francisco J Ballesteros
mousefs is another example. I think I placed it in sources. It's used here to redirect mice to other Plan 9s. On Fri, Jun 4, 2010 at 5:34 PM, ron minnich wrote: > http://bitbucket.org/rminnich/plan9tools/src/tip/catmouse.c > > I sort of wanted to learn what it would take to interpose a program >

[9fans] a very silly program

2010-06-04 Thread ron minnich
http://bitbucket.org/rminnich/plan9tools/src/tip/catmouse.c I sort of wanted to learn what it would take to interpose a program between /dev/mouse and something else. Now I've learned and this clunker is the result. It's sort of amusing. to test, get thee to a window and: 8.catmouse rio obviousl